From 1fae32c601d4704113a6acd5f66c613ac335a480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Tue, 28 Aug 2001 16:10:28 +0000 Subject: [PATCH] completed the fix for the "NULL" value problem --- tbl_printview.php3 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tbl_printview.php3 b/tbl_printview.php3 index e4610be52..9ad55b5c8 100755 --- a/tbl_printview.php3 +++ b/tbl_printview.php3 @@ -89,6 +89,13 @@ while ($row = mysql_fetch_array($result)) { if ($zerofill) { $strAttribute = 'UNSIGNED ZEROFILL'; } + if (!isset($row['Default'])) { + if ($row['Null'] != '') { + $row['Default'] = 'NULL'; + } + } else { + $row['Default'] = htmlspecialchars($row['Default']); + } echo "\n"; ?> @@ -96,7 +103,7 @@ while ($row = mysql_fetch_array($result)) { >   -   +