$rs=mysql($dbname,"show fields from $tablename"); $nf=mysql_numrows($rs); echo "
$table_font_tag Fieldname | $table_font_tag Type | $table_font_tag Key | $table_font_tag extra | $table_font_tag function | "; while($j<$nf): $fn = mysql_result($rs,$j,"Field"); $tt="old$fn"; $$tt=$$fn; echo ""; $ft = mysql_result($rs,$j,"Type"); $fk = mysql_result($rs,$j,"Key"); $fe = mysql_result($rs,$j,"Extra"); echo "\n\t |
---|---|---|---|---|---|
$table_font_tag $fn | $table_font_tag $ft | $table_font_tag $fk | $table_font_tag $fe | "; echo " | echo ""; $j++; endwhile; echo " |