" . lang('Table') . ": " . htmlspecialchars($_GET["table"]) . "\n";
$result = mysql_query("SHOW FULL COLUMNS FROM " . idf_escape($_GET["table"]));
echo "
\n";
while ($row = mysql_fetch_assoc($result)) {
echo "" . htmlspecialchars($row["Field"]) . " | $row[Type]" . ($row["Null"] == "NO" ? " NOT NULL" : "") . " |
\n";
}
echo "
\n";
mysql_free_result($result);
echo '' . lang('Alter table') . "
\n";
$indexes = indexes($_GET["table"]);
if ($indexes) {
echo "" . lang('Indexes') . "
\n";
echo "\n";
foreach ($indexes as $type => $index) {
foreach ($index as $columns) {
sort($columns);
echo "$type | " . implode(", ", $columns) . " |
\n";
}
}
echo "
\n";
}
$result = mysql_query("SHOW TRIGGERS LIKE '" . mysql_real_escape_string($_GET["table"]) . "'");
if (mysql_num_rows($result)) {
echo "" . lang('Triggers') . "
\n";
echo "\n";
while ($row = mysql_fetch_assoc($result)) {
echo "$row[Timing] | $row[Event] | " . htmlspecialchars($row["Statement"]) . " |
\n";
}
echo "
\n";
}
mysql_free_result($result);