今天看了mysql,看完后又懵逼了...完全不会,而且新东西好多,晚上写代码都感觉稍微明白了一点...
".$res[0]; echo " 查看表"; } }?>
"; $field_count = mysql_num_fields($struct); echo ""; for($i=0; $i<$field_count; ++$i){ $file_name = mysql_field_name($struct,$i); echo "".$file_name.""; } echo ""; while($res = mysql_fetch_array($struct)){ echo ""; for($i=0; $i<$field_count; ++$i){ echo "".$res[$i].""; } echo ""; } echo ""; } ?>
"; $field_count = mysql_num_fields($data); echo ""; for($i=0; $i<$field_count; ++$i){ $field_name = mysql_field_name($data,$i); echo "".$field_name.""; } echo ""; while($res = mysql_fetch_array($data)){ echo ""; for($i=0; $i<$field_count; ++$i){ echo "".$res[$i].""; } echo ""; } echo ""; }?>