php获取mysql数据库中表字段名称<br />
<br />
<?php <br />
$conn=mysql_connect("localhost","用户名","密码") or die("链接失败");<br />
mysql_select_db("数据库名");<br />
$sql="select * from 表名";<br />
$result=mysql_query($sql);<br />
echo mysql_field_name($result,0);<br />
echo '<br>';<br />
echo mysql_field_name($result,1);<br />
?>