前台直接输出 {$pager}
后台查询
$m_list0 = pdo_fetchall($sql.$where_group);
$total = count($m_list0); //统计总条数
$pageindex = intval($_GPC['page']);
if (empty($pageindex)) {
$pageindex=1;
}
$pagesize = 1;
$pager = pagination($total, $pageindex, $pagesize);
$p = ($pageindex-1) * $pagesize;
$limt=" LIMIT " . $p . "," . $pagesize;
$m_list = pdo_fetchall($sql.$where_group.$limt);