small fixes in output
This commit is contained in:
@@ -64,13 +64,18 @@ while($row= mysql_fetch_array($result))
|
|||||||
$Type = stripslashes($row["Type"]);
|
$Type = stripslashes($row["Type"]);
|
||||||
} else {
|
} else {
|
||||||
$Type = $row["Type"];
|
$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("BINARY", "", $Type);
|
||||||
$Type = eregi_replace("ZEROFILL", "", $Type);
|
$Type = eregi_replace("ZEROFILL", "", $Type);
|
||||||
$Type = eregi_replace("UNSIGNED", "", $Type);
|
$Type = eregi_replace("UNSIGNED", "", $Type);
|
||||||
echo $Type;
|
if (!empty($Type)) echo $Type;
|
||||||
?> </td>
|
else echo " ";
|
||||||
<td>
|
?></td><td>
|
||||||
<?php
|
<?php
|
||||||
$binary = eregi("BINARY", $row["Type"], $test);
|
$binary = eregi("BINARY", $row["Type"], $test);
|
||||||
$unsigned = eregi("UNSIGNED", $row["Type"], $test);
|
$unsigned = eregi("UNSIGNED", $row["Type"], $test);
|
||||||
@@ -81,11 +86,11 @@ while($row= mysql_fetch_array($result))
|
|||||||
if ($unsigned)
|
if ($unsigned)
|
||||||
$strAttribute="UNSIGNED";
|
$strAttribute="UNSIGNED";
|
||||||
if ($zerofill)
|
if ($zerofill)
|
||||||
$strAttribute="UNSIGNED ZEROFILL";
|
$strAttribute="UNSIGNED ZEROFILL";
|
||||||
echo $strAttribute;
|
if (!empty($strAttribute)) echo $strAttribute;
|
||||||
|
else echo " ";
|
||||||
$strAttribute="";
|
$strAttribute="";
|
||||||
?>
|
?></td>
|
||||||
</td>
|
|
||||||
<td><?php if ($row["Null"] == "") { echo $strNo;} else {echo $strYes;}?> </td>
|
<td><?php if ($row["Null"] == "") { echo $strNo;} else {echo $strYes;}?> </td>
|
||||||
<td><?php if(isset($row["Default"])) echo $row["Default"];?> </td>
|
<td><?php if(isset($row["Default"])) echo $row["Default"];?> </td>
|
||||||
<td><?php echo $row["Extra"];?> </td>
|
<td><?php echo $row["Extra"];?> </td>
|
||||||
|
Reference in New Issue
Block a user