【问题标题】:PHP paging show page indicatorPHP分页显示页面指示器
【发布时间】: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] 下一页

粗体是当前页面。

【问题讨论】:

标签: php mysql activerecord paging indicator


【解决方案1】:

你可以从here复制分页逻辑

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-10
    • 1970-01-01
    相关资源
    最近更新 更多