]> git.joonet.de Git - adminer.git/commitdiff
Highlight NULL
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 5 Jul 2007 14:56:43 +0000 (14:56 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 5 Jul 2007 14:56:43 +0000 (14:56 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@49 7c3ca157-0c34-0410-bff1-cbf682f78f5c

table.inc.php

index 2233beb298267b653609b42eb9a6868acaed888d..de172ec04ee0878f55e8501bdd5b050b19b291ce 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 page_header(lang('Table') . ": " . htmlspecialchars($_GET["table"]));
 
-$result = mysql_query("SHOW FULL COLUMNS FROM " . idf_escape($_GET["table"]));
+$result = mysql_query("SHOW COLUMNS FROM " . idf_escape($_GET["table"]));
 echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
 while ($row = mysql_fetch_assoc($result)) {
-       echo "<tr><th>" . htmlspecialchars($row["Field"]) . "</th><td>$row[Type]" . ($row["Null"] == "NO" ? " NOT NULL" : "") . "</td></tr>\n";
+       echo "<tr><th>" . htmlspecialchars($row["Field"]) . "</th><td>$row[Type]" . ($row["Null"] == "NO" ? "" : " <i>NULL</i>") . "</td></tr>\n";
 }
 echo "</table>\n";
 mysql_free_result($result);