[原创]急 |
<HTML>
<HEAD>
<title>记录显示</title>
</HEAD>
<BODY>
<?php
$connect=mysql_connect("localhost","root");
if($connect)
echo "right";
else
echo "error";
mysql_seclect_db("student");
$result=mysql_query("select * form stu");
echo "<table border=1>";
echo "<tr><td>name</td><td>id</td><td>tel</td></tr>";
while($arr=mysql_fetch_array($result))
{
echo "<tr><td>".$arr["name"]."</td>";
echo "<td>".$arr["id"]."</td>";
echo "<td>".$arr["tel"]."</td>;
?>
</BODY>
</HTML>
这一块代码应该没有什么问题,如果没有下面那块显示记录的代码,页面上显示right,我想这应该连上数据库了,为什么敲上下面的代码,就提示错误了,错误是这样的,
Parse error: parse error, unexpected $end in d:\usr\www\html\connect.php on line 23
|
|
|