WHILE语句报错?
<table width="200" border="1" height="5"><?php
include_once("conn.php");
$sql=mysql_query("select count(*) as total from gouwu");
$info=mysql_fetch_array($sql);
$total=$info[total];
if($total==0){
echo"暂无内容";}
else{
$pagesize = 5;
$totalpage = ceil($num['total']/$pagesize);
if(!isset($_GET['page']))
{
$page = 1;
}
else
{
$page = $_GET['page'];
}
$sql=mysql_query("select * from gouwu limit".($page-1)*$pagesize.",$pagesize",$conn);
while($info=mysql_fetch_array($sql)){
?>
<tr>
<td><?php echo"$info[count]";?></td>
</tr>
<?php
}
}
?>
</table>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in F:\appserv\www\2.php on line 29