请帮助一下,19行有什么问题?

hnchina1 hnchina1 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Fatal error: Call to undefined function mysql_fetch_arry() in C:\web\Apache2.2\htdocs\phnoebook.php on line 19


<?
if($new_name and $new_pn)
{
$link_id=mysql_connect("localhost","root","overmax");
mysql_select_db("contact");
mysql_query("insert into list(name,pn) values ('$new_name','$new_pn')"
,$link_ID);
mysql_close($link_ID);
};

?>
<?
$link_ID=mysql_connect("localhost","root","overmax");
mysql_select_db("contact");
$result=mysql_query("select * from list;",$link_ID);
$sn_index=mysql_num_rows($result);
for($index=0; $index<$sn_index;$index++)
{
$arr[$index]=mysql_fetch_arry($result,mysql_num); //这是19行
};
mysql_cloe($link_id);
?>
<html>
<head>
<title>通讯录</title>
</head>
<body>
<h1 align="center">范例-通讯录</h1>
<hr>
<h2 align="center">通讯录列表</h2>
下表为通记录中所有的数据列表,若要新增数据,请在下面的新增数据区操作。
<BR><BR>
<table align=center border-5>
<tr align=center>
<td>
编号
</td>
<td width=100>
名称
</td>
<td width=120>
电话号码
<td>
<tr>

<?
for ($index=0;$index <$sn_index;$index++)
{require("list_display.php");};
?>
<table>
<br/><br/><hr>
<h2 align="center">新增数据区</h2>
请在下列域输入数据后按下<font color=red>新增</font>按钮.<br/><br/>
<from action="phonebook.php" method="post">
姓名<input type="text" name="new_name">
电话号码<input type="text" name="new_pn">
<input type="submit" value="新增">
</form>
</body>
</html>
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
hnchina1
基础编程 21,889 成员 140,329 内容