coding standards
This commit is contained in:
@@ -459,18 +459,17 @@ for ($i = 0; $i < $fields_cnt; $i++) {
|
|||||||
} // end if...elseif...else
|
} // end if...elseif...else
|
||||||
} // end else if
|
} // end else if
|
||||||
else {
|
else {
|
||||||
|
// For char or varchar, respect the maximum length (M); for other
|
||||||
// for char or varchar, respect the maximum length (M);
|
// types (int or float), the length is not a limit on the values that
|
||||||
// for other types (int or float), the length is not a limit on the values
|
// can be entered, so let's be generous (20) (we could also use the
|
||||||
// that can be entered, so let's be generous (20)
|
// real limits for each numeric type)
|
||||||
// (we could also use the real limits for each numeric type)
|
|
||||||
if ($is_char) {
|
if ($is_char) {
|
||||||
$fieldsize = (($len > 40) ? 40 : $len);
|
$fieldsize = (($len > 40) ? 40 : $len);
|
||||||
$maxlength = $len;
|
$maxlength = $len;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$fieldsize = $maxlength = 20;
|
$fieldsize = $maxlength = 20;
|
||||||
} // end if
|
} // end if... else...
|
||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
<td bgcolor="<?php echo $bgcolor; ?>">
|
<td bgcolor="<?php echo $bgcolor; ?>">
|
||||||
|
Reference in New Issue
Block a user