From be78d37ab8566759f47aa9ae80bb589a08412e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 17 May 2002 12:34:44 +0000 Subject: [PATCH] coding standards --- tbl_change.php3 | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/tbl_change.php3 b/tbl_change.php3 index 73dc6e8a4..57bb0813f 100755 --- a/tbl_change.php3 +++ b/tbl_change.php3 @@ -459,18 +459,17 @@ for ($i = 0; $i < $fields_cnt; $i++) { } // end if...elseif...else } // end else if else { - -// for char or varchar, respect the maximum length (M); -// for other types (int or float), the length is not a limit on the values -// that can be entered, so let's be generous (20) -// (we could also use the real limits for each numeric type) - if ($is_char) { - $fieldsize = (($len > 40) ? 40 : $len); - $maxlength = $len; - } - else { - $fieldsize = $maxlength = 20; - } // end if + // For char or varchar, respect the maximum length (M); for other + // types (int or float), the length is not a limit on the values that + // can be entered, so let's be generous (20) (we could also use the + // real limits for each numeric type) + if ($is_char) { + $fieldsize = (($len > 40) ? 40 : $len); + $maxlength = $len; + } + else { + $fieldsize = $maxlength = 20; + } // end if... else... echo "\n"; ?>