" . 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 "\n"; } echo "
" . htmlspecialchars($row["Field"]) . "$row[Type]" . ($row["Null"] == "NO" ? " NOT NULL" : "") . "
\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 "\n"; } } echo "
$type" . implode(", ", $columns) . "
\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 "\n"; } echo "
$row[Timing]$row[Event]" . htmlspecialchars($row["Statement"]) . "
\n"; } mysql_free_result($result);