1
<?php
$pagesize=20;
@$p=$_GET['p']?$_GET['p']:1;
$offset = ($p-1)*$pagesize;
$query = "select * from `say` order by id DESC limit $offset,$pagesize";
$res=mysql_query($query);
while ($row=mysql_fetch_array($res)){
$pic_id = $row['id'];
?>
2
$count_result=mysql_query("select count(*) as count from say"); $count_array=mysql_fetch_array($count_result);
它们都显示: Warning: mysql_fetch_array() expects parameter 1 to be resource
qq_笑_17
慕斯709654
尚方宝剑之说