当前位置:Gxlcms > PHP教程 > mysql_field_name½Ì³Ì_PHP教程

mysql_field_name½Ì³Ì_PHP教程

时间:2021-07-01 10:21:17 帮助过:7人阅读

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

mysql_field_name(data,field_offset)
²ÎÊý:
field_offset:¿ªÊ¼Î»ÖÃ
data:±ØÑ¡Ïî ,ÊÇÖ¸mysql_query²éѯ·µ»ØµÄÖµ.
ºÃÁËÎÒÃÇÀ´¿´¿´mysql_field_nameµÄʵÀý°É.

$sql = "SELECT * from Person";
$result = mysql_query($sql,$con);
$name = mysql_field_name($result, 0);
echo $name;
 
?>
½á¹û.
LastName

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/630893.htmlTechArticlemysql_field_name ÊÇ·µ»Ø$resultµÄÃû×Ö,³É¹¦¾Í·µ»ØÖµ,·ñÔò¾ÍÊÇfalse; mysql_field_name(data,field_offset) ²ÎÊý: field_offset:¿ªÊ¼Î»Öà data:±Ø...

人气教程排行