PHP Classes

SimplePaginator: Retrieve MySQL query result rows to show in pages

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 50%Total: 710 All time: 4,641 This week: 455Up
Version License PHP version Categories
simplepaginator 1.0BSD License3.0Databases
Description 

Author

This class can be used to execute MySQL queries to display results split on multiple pages.

It takes as parameters an SQL query, the limit number of rows to display per page, and the number of the current page.

The class calculates the range of rows to retrieve and executes the SQL query appending a LIMIT clause to retrieve only the rows to display on the current page.

Picture of Ellery Leung
Name: Ellery Leung <contact>
Classes: 6 packages by
Country: Hong Kong Hong Kong

  Files folder image Files (2)  
File Role Description
Plain text file Paginator.class.php Class Source class file
Accessible without login Plain text file Paginator_example.php Example Paginator example

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:710
This week:0
All time:4,641
This week:455Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2638