mirror of
https://github.com/vrana/adminer.git
synced 2026-07-30 21:31:52 +02:00
Move error output to page_header()
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@386 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<?php
|
||||
page_header(lang('Table') . ": " . htmlspecialchars($_GET["table"]));
|
||||
|
||||
$result = $mysql->query("SHOW COLUMNS FROM " . idf_escape($_GET["table"]));
|
||||
if (!$result) {
|
||||
echo "<p class='error'>" . lang('Unable to show the table definition') . ": " . $mysql->error . ".</p>\n";
|
||||
} else {
|
||||
$error = $mysql->error;
|
||||
}
|
||||
page_header(lang('Table') . ": " . htmlspecialchars($_GET["table"]), $error);
|
||||
|
||||
if ($result) {
|
||||
$table_status = table_status($_GET["table"]);
|
||||
$auto_increment_only = true;
|
||||
echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
|
||||
|
||||
Reference in New Issue
Block a user