PHP分页类
我正在寻找一个 php 分页类,我过去使用过一个相当简单的类,但它不再受支持。
我想知道是否有人有任何建议?
当可能有这么多好的产品时,建立自己的产品似乎毫无意义。
I am looking for a php pagination class, I have used a rather simple one in the past and it is no longer supported.
I was wondering if anyone had any recommendations ?
It seems pointless to build my own when there are probably so many good ones out there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
您的 SQL SELECT 语句查询很可能将 1000 个结果转化为数千条记录。但将所有结果显示在一页上并不是一个好主意。所以我们可以根据需要将这个结果分成很多页,作为 pagination Class 。
使用 PAGINATION 类对数据进行分页 非常简单
pagination 类有助于生成分页
如何使用 Pagination 类
访问此链接了解更多信息
http://utlearn.com/2017/02/15 /分页类-使用分页类/
Its Very possible that your SQL SELECT statement query may 1000 result into thousand of records. But its is not good idea to display all the results on one page. So we can divide this result into many pages as per requirement as pagination Class .
PAGINATE DATA WITH PAGINATION CLASS VERY EASY
pagination Class helps to generate paging
How To Use Pagination Class
visit this link for more info
http://utlearn.com/2017/02/15/pagination-class-use-pagination-class/
使用:
结果:
Use:
Result:
你可以试试这个:
Zebra_Pagination,一个用 PHP 编写的通用、Twitter Bootstrap 兼容的分页类
检查下面的链接:
http://stefangabos.ro/php-libraries/zebra-pagination
you can try this:
Zebra_Pagination, a generic, Twitter Bootstrap compatible, pagination class written in PHP
check the link below:
http://stefangabos.ro/php-libraries/zebra-pagination
您尝试过 PEAR::Pager 吗?用法示例此处。
Have you tried PEAR::Pager? Usage examples here.
我建议 Zend_Paginator ,原因如下:
I would suggest Zend_Paginator for the following reasons
经过更多搜索后,我决定在使用框架版本之前,我应该充分了解分页器所涉及的内容。所以我自己建了一个。不过还是谢谢你的建议!
After more searching I decided that before I use a frameworked version I should fully understand what is involved in a paginator. So I built one myself. Thanks for the suggestions though!