diff --git a/functions.inc.php b/functions.inc.php index b9fce472..764667cd 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -41,7 +41,7 @@ function fields($table) { "length" => $match[2], "unsigned" => ltrim($match[3] . $match[4]), "default" => $row["Default"], - "null" => ($row["Null"] != "NO"), + "null" => ($row["Null"] == "YES"), "extra" => $row["Extra"], "collation" => $row["Collation"], "privileges" => explode(",", $row["Privileges"]), diff --git a/table.inc.php b/table.inc.php index 4f96938b..7cfac1a1 100644 --- a/table.inc.php +++ b/table.inc.php @@ -7,7 +7,7 @@ if (!$result) { } else { echo "\n"; while ($row = mysql_fetch_assoc($result)) { - echo "\n"; + echo "\n"; } echo "
" . htmlspecialchars($row["Field"]) . "$row[Type]" . ($row["Null"] == "NO" ? "" : " NULL") . "
" . htmlspecialchars($row["Field"]) . "$row[Type]" . ($row["Null"] == "YES" ? " NULL" : "") . "
\n"; mysql_free_result($result);