越简单越好!
php 分页函数
发表于 2006-12-13 11:19    

<?function page($sql,$pagenum){ global $cur_page,$total_page_nums,$last_page,$next_page;  $result =mysql_query($sql); $num=mysql_num_rows($result);   $total_page_nums=intval($num/$pagenum); if($num%$pagenum) $total_page_nums = $total_page_nums + 1; i...

查看详情已有382次阅读  |  0次点赞  |  0个评论
返回顶部 ^