$start = ($page-1)*$pagesize; $sql = "select * from user limit$start,$pagesize";
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in index.php on line 16
我提交一直出现这个警告,是什么原因呢,求解答!
mysql_fetch_array()现在已经被弃用了,使用mysqli或者PDO扩展,比如:mysqli_fetch_array()
$sql = "select * from user "
$offset = ($page - 1) * $pagesize;
$sql = "select * from user limit $offset, $pagesize";