Home > php教程 > php手册 > body text

mysql_field_name ½Ì³Ì

WBOY
Release: 2016-06-13 10:07:19
Original
1254 people have browsed it

mysql_field_name ÊÇ·µ»Ø$resultµÄÃû×Ö,³É¹¦¾Í·µ»ØÖµ,·ñÔò¾ÍÊÇfalse;

mysql_field_name(data,field_offset)
Copy after login
²ÎÊý:
Copy after login
field_offset:¿ªÊ¼Î»ÖÃ
Copy after login
data:±ØÑ¡Ïî ,ÊÇÖ¸mysql_query²éѯ·µ»ØµÄÖµ.
Copy after login
ºÃÁËÎÒÃÇÀ´¿´¿´<strong>mysql_field_name</strong>µÄʵÀý°É.
Copy after login
<?php 
Copy after login
<pre class="brush:php;toolbar:false">$sql = "SELECT * from Person";
$result = mysql_query($sql,$con);
Copy after login
$name = mysql_field_name($result, 0);
Copy after login
echo $name;
Copy after login
 
Copy after login
?>
Copy after login
½á¹û.
Copy after login
<pre class="brush:php;toolbar:false">LastName
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!