后台:
$participators = pdo_fetchall("SELECT * FROM " . tablename('june_kanjia_participator') . "ORDER BY `price` DESC");
$total = count($participators);
$pageindex = intval($_GPC['page'], 1 );
$pagesize = 15;
$pager = pagination($total, $pageindex, $pagesize);
$p = ($pageindex-1) * 15;
$participators = pdo_fetchall("SELECT * FROM " . tablename('june_kanjia_participator') . "ORDER BY `price` DESC LIMIT " . $p . "," . $pagesize);
前台:在模板中输出 {$pager } 即可