mysql_field_name ÊÇ·µ»Ø$resultµÄÃû×Ö,³É¹¦¾Í·µ»ØÖµ,·ñÔò¾ÍÊÇfalse;
mysql_field_name(data,field_offset)
²ÎÊý:
field_offset:¿ªÊ¼Î»ÖÃ
data:±ØÑ¡Ïî ,ÊÇÖ¸mysql_query²éѯ·µ»ØµÄÖµ.
ºÃÁËÎÒÃÇÀ´¿´¿´<strong>mysql_field_name</strong>µÄʵÀý°É.
<?php
<pre class="brush:php;toolbar:false">$sql = "SELECT * from Person"; $result = mysql_query($sql,$con);
$name = mysql_field_name($result, 0);
echo $name;
?>
½á¹û.
<pre class="brush:php;toolbar:false">LastName