getPrefix(); //计算分页 $pageSize = 20; $currentPage = isset($_REQUEST['page']) ? ($_REQUEST['page'] + 0) : 1; $all = $db->fetchAll($db->select()->from('table.comment_push') ->order('table.comment_push.time', Typecho_Db::SORT_DESC)); $pageCount = ceil(count($all) / $pageSize); $current = $db->fetchAll($db->select()->from('table.comment_push') ->page($currentPage, $pageSize) ->order('table.comment_push.time', Typecho_Db::SORT_DESC)); ?>