Login   Register  
PHP Classes
elePHPant
Icontem

SimplePaginator: Retrieve MySQL query result rows to show in pages

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-01-29 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 699 All time: 4,273 This week: 2,239Up
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
Age: ???
All time rank: 3191 in Hong Kong Hong Kong
Week rank: 765 Down5 in Hong Kong Hong Kong Down

  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 0%Total:699All time:4,273
 This week:0This week:2,239Up
 User Comments (1)