query("SHOW COLUMNS FROM " . idf_escape($_GET["table"])); if (!$result) { echo "
" . lang('Unable to show the table definition') . ": " . $mysql->error . ".
\n"; } else { $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(", ", $index["columns"]) . " |
" . implode(", ", $foreign_key[2]) . " | "; $link = (strlen($foreign_key[0]) && $foreign_key[0] !== $_GET["db"] ? "" . htmlspecialchars($foreign_key[0]) . "." : "") . htmlspecialchars($foreign_key[1]); echo '$link(" . implode(", ", $foreign_key[3]) . ") | "; echo '' . lang('Alter') . " | "; echo "
' . lang('Add foreign key') . "
\n"; } if ($mysql->server_info >= 5) { $result = $mysql->query("SHOW TRIGGERS LIKE '" . $mysql->escape_string($_GET["table"]) . "'"); if ($result->num_rows) { echo "$row[Timing] | $row[Event] | " . htmlspecialchars($row["Statement"]) . " |
---|