<html>
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="Zend Studio" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>title</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">
<?php
$host="localhost";
$user="root";
$pass="root";
$db="phpdev";

$mysqli=new mysqli($host,$user,$pass,$db);

if(mysqli_connect_errno()){
die("unable to connect");
}

$query="select * from symbols";

if($result=$mysqli->query($query)){
if($result->num_rows>0){
echo "<table cellpadding=0 border=1>";
while ($row=$result->fetch_array()){
echo "<tr>";
echo "<td>" . $row[0] . "</td>";
echo "<td>" . $row[1] . "</td>";
echo "<td>" . $row[2] . "</td>";
echo "<td>" . $row[3] . "</td>";
echo "</tr>";
}
echo "</table>";
}else{
echo "没有记录";
}
$result->close();
}else{
echo "errot in query: $query" . $mysqli->error;
}
$mysqli->close();?>
</body>
</html>以上这段代码我在zend里调试成功,可以显示数据,但是用浏览器运行却显示空白,浏览器没有报错。IE6,7都一样。请问这是什么问题?谢谢!