PHP Classes

Database Pagination: Paginate database query result listings

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 43%Total: 774 All time: 4,380 This week: 68Up
Version License PHP version Categories
db-pagination 1.0GNU General Publi...5.1HTML, PHP 5, Databases
Description 

Author

This class can paginate database query result listings.

The main pagination class can call a database access class which uses PDO to retrieve the total number of records for database query to a given table matching a given condition.

The pagination class can generate HTML for links to go to the next, previous, first, last and any intermediate pages of the listing the query results.

The number of the current page and the search results order is retrieved from a GET request parameter. The limit of records to list per page is configurable.

The class can also execute the query to retrieve into an array the records to display in the current page.

Picture of Ron Darby
  Performance   Level  
Name: Ron Darby <contact>
Classes: 4 packages by
Country: South Africa South Africa

  Files folder image Files (3)  
File Role Description
Plain text file db.class.php Class database connection class
Accessible without login Plain text file index.php Example Sample usage
Plain text file pagination.class.php Class pagination class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:774
This week:0
All time:4,380
This week:68Up
User Ratings User Comments (3)
 All time
Utility:62%StarStarStarStar
Consistency:68%StarStarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:3611
 
Super handy class, so easy to use.
11 years ago (John Drummer)
70%StarStarStarStar
wasted my time, got error.
11 years ago (Frank DeCicco)
2%Star
This is a very good and useful class ! :-D
11 years ago (José Filipe Lopes Santos)
70%StarStarStarStar