query("SHOW COLUMNS FROM " . idf_escape($_GET["table"])); if (!$result) { echo "
" . lang('Unable to show the table definition') . ": " . $mysql->error . ".
\n"; } else { $table_status = table_status($_GET["table"]); $auto_increment_only = true; echo "" . htmlspecialchars($row["Field"]) . " | $row[Type]" . ($row["Null"] == "YES" ? " NULL" : "") . " |
---|
"; echo '' . lang('Alter table') . ''; echo ($auto_increment_only ? '' : ' ' . lang('Default values') . ''); echo "
\n"; echo "$index[type] | " . implode(", ", $print) . " |
" . implode(", ", array_map('htmlspecialchars', $foreign_key["source"])) . " | "; $link = (strlen($foreign_key["db"]) ? "" . htmlspecialchars($foreign_key["db"]) . "." : "") . htmlspecialchars($foreign_key["table"]); echo '$link"; echo "(" . implode(", ", array_map('htmlspecialchars', $foreign_key["target"])) . ") | "; echo '' . (!strlen($foreign_key["db"]) ? '' . lang('Alter') . '' : ' ') . ' | '; echo "
' . lang('Add foreign key') . "
\n"; } } if ($mysql->server_info >= 5) { echo "$row[Timing] | $row[Event] | " . htmlspecialchars($row["Trigger"]) . " | ' . lang('Alter') . " |
---|