include ("auth.inc.php3");
$rs=mysql($dbname,"show fields from $tablename");
$nrs=mysql_numrows($rs);
$nf=mysql_numfields($rs);
echo "database: $dbname
table: $tablename
$nrs fields
"; echo "
| $table_font_tag Field | $table_font_tag Type | $table_font_tag Null | $table_font_tag Key | $table_font_tag Default | $table_font_tag Extra | $table_font_tag Alter Table | "; while($j<$nrs): echo " |
|---|
"; echo "
| $table_font_tag"; echo mysql_fieldName($rs,$i); $i++; endwhile; echo " | "; $j=0; while($j<$nrs): echo " |
|---|