Home  >  Article  >  Backend Development  >  mysql_field_name ½Ì³Ì_PHP tutorial

mysql_field_name ½Ì³Ì_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:04:101508browse

Isqui________ ng króé µ

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
http://www.bkjia.com/PHPjc/630893.html

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/630893.htmlTechArticlemysql_field_name ÊÇ·µ»Ø$resultµÄÄÃû×Í,³¾É·Áñ¦¦ False; mysql_field_name(data,field_offset) ²ÎÊý: field_offset:¿aÊ1⁎»Öà data:±Ø...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn