diff --git a/editing.inc.php b/editing.inc.php
index e246faa6..cf8d2316 100644
--- a/editing.inc.php
+++ b/editing.inc.php
@@ -91,7 +91,7 @@ function edit_type($key, $field, $collations) {
?>
|
" size="3" /> |
- |
+' . optionlist($collations, $field["collation"]) . '' . ($unsigned ? " ' : ''); ?> |
query("SHOW TABLE STATUS LIKE '" . $dbh->escape_string(addcslashes($table, "%_")) . "'");
- $return = $result->fetch_assoc();
- $result->free();
- return $return;
-}
-
function unique_idf($row, $indexes) {
foreach ($indexes as $index) {
if ($index["type"] == "PRIMARY" || $index["type"] == "UNIQUE") {
diff --git a/mysql.inc.php b/mysql.inc.php
index b8bee319..4a22c154 100644
--- a/mysql.inc.php
+++ b/mysql.inc.php
@@ -284,6 +284,14 @@ function get_databases() {
return $return;
}
+function table_status($table) {
+ global $dbh;
+ $result = $dbh->query("SHOW TABLE STATUS LIKE '" . $dbh->escape_string(addcslashes($table, "%_")) . "'");
+ $return = $result->fetch_assoc();
+ $result->free();
+ return $return;
+}
+
function fields($table) {
global $dbh;
$return = array();