显示没有提示出错,浏览器显示是一篇空白,想不通啊,那位可以帮我看看啊,感激不尽感激不尽啊。<?php
$conn=@mysql_connect("localhost","root","") or die("连接出错");
mysql_select_db("bbs",$conn);
mysql_query("set names 'GBK'");?>
<?
$sql = "SELECT * from message";
$query=mysql_query($sql,$conn);
while($row=mysql_fetch_array($query)){
echo $row[title];
echo "<br>".$row[user];
echo "<br>".$row[content];
}
?>
$conn=@mysql_connect("localhost","root","") or die("连接出错");
mysql_select_db("bbs",$conn);
mysql_query("set names 'GBK'");?>
<?
$sql = "SELECT * from message";
$query=mysql_query($sql,$conn);
while($row=mysql_fetch_array($query)){
echo $row[title];
echo "<br>".$row[user];
echo "<br>".$row[content];
}
?>
<?php$conn=@mysql_connect("localhost","root","")
修改成 $conn=mysql_connect("localhost","root","") 看看什么反映