发新话题
打印

急~~!运行时候出问题~~!快来帮忙啊

急~~!运行时候出问题~~!快来帮忙啊

运行这个程序:
<?php
$conn=mysql_connect("localhost","root","")
mysql_select_db("pst");
$sql="SELECT * FROM `gbook`";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result));
{
print_r ($row);
mysql_free_result($result)

}
mysql_close($conn);
?>



就出现这个错误:Parse error: syntax error, unexpected T_STRING in D:\www\laoshui\show.php on line 3

检查了好久却不知道哪里出问题~~~请高手指教~!谢谢了~!!

TOP

$conn=mysql_connect("localhost","root","")

mysql_free_result($result)

后面都没有加分号

TOP

发新话题