From d1b7dd79a3278a254d905e0a40d7f380908a8ecc Mon Sep 17 00:00:00 2001 From: Steve Alberty Date: Sun, 10 Jun 2001 12:54:32 +0000 Subject: [PATCH] small fixes in output --- tbl_printview.php3 | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tbl_printview.php3 b/tbl_printview.php3 index 6a34a7bc2..b48dcaa95 100755 --- a/tbl_printview.php3 +++ b/tbl_printview.php3 @@ -64,13 +64,18 @@ while($row= mysql_fetch_array($result)) $Type = stripslashes($row["Type"]); } else { $Type = $row["Type"]; + } + // reformat mysql query output - staybyte - 9. June 2001 + $shorttype=substr($Type,0,3); + if ($shorttype=="set" || $shorttype=="enu"){ + $Type=eregi_replace (",",", ",$Type); } $Type = eregi_replace("BINARY", "", $Type); $Type = eregi_replace("ZEROFILL", "", $Type); $Type = eregi_replace("UNSIGNED", "", $Type); - echo $Type; - ?>  - + if (!empty($Type)) echo $Type; + else echo " "; +?> -   + ?>