【发布时间】:2013-01-08 00:38:05
【问题描述】:
我查找了许多类似的脚本,但没有用
有当前代码
<?php
$LimitPerPage = 3;
$CurrentPage = 1;
if(isset($_GET['p'])){
$CurrentPage = $_GET['p'];
}
$PageOffset = ($CurrentPage - 1) * $LimitPerPage;
$image = imagedb::find_all_by_owner($email,array('limit' => $LimitPerPage,'offset' => $PageOffset));
$TotalPage = ceil(count($linkerimage)/$LimitPerPage);
if(!is_null($image)){
// ..show image code
}
?>
如何开发切换页面的导航栏?
例如。上一页 [1] [2] [3] [4] ... [64] 下一页
粗体是当前页面。
【问题讨论】:
-
你显然需要一个循环,我没有看到。
-
如何使用search 函数,例如php-pagination-limit-per-page
-
我没有使用 php mysql 功能
标签: php mysql activerecord paging indicator