随笔分类 -  Smarty

摘要:分页思路:1.首先,获取要查询的数据总记录数($count)$sql = 'select count(*) from table_name';2.然后,设置每页要显示的记录数($percount)3.计算出总的页数:$pagecount = ceil($count/$percount);4.获取当前... 阅读全文
posted @ 2015-10-09 01:13 lesuso 阅读(305) 评论(0) 推荐(0)