【php开源代码栏目提醒】:本文主要为网学会员提供code7.4.2.php,希望对需要code7.4.2.php网友有所帮助,学习一下!
<fieldset>
<legend>3.mysql_fetch_array()函数</legend>
<?php
$link=mysql_connect("localhost","root","0");
if(!$link)
{
echo "数据库连接失败";
}
my
sql_select_db("db_student");
$exec="select * from student";
$result=
mysql_query($exec);
print_r(mysql_fetch_array($result,MYSQL_ASSOC));
mysql_close();
?>
</fieldset>