Login   Register  
PHP Classes
elePHPant
Icontem

Query Limit: Compute the LIMIT clause to get paginated results

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 (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-04-09 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 358 All time: 6,142 This week: 2,239Up
Version License PHP version Categories  
querylimit 0.1GNU Lesser General Publ...4Databases
Description Author  

This is a simple class to compute the SQL LIMIT clause to retrieve query results to display in paginated listings.

It takes as parameters an array with values of the total number of rows in the result set, the number of rows to display per page and the current page to be displayed.

The class returns a string with the SQL LIMIT clause that should be used to specify the range of rows to be retrieved from the database.

Picture of Eren Ezgü
Name: Eren Ezgü <contact>
Classes: 2 packages by
Country: Turkey Turkey
Age: 30
All time rank: 139624 in Turkey Turkey
Week rank: 1821 Down27 in Turkey Turkey Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file QueryLimit.class.php Class QueryLimit class file

 Version Control Unique User Downloads Download Rankings  
 0%Total:358All time:6,142
 This week:0This week:2,239Up
 User Comments (1)  
 
Hi !! Why you do not try use the package DB of the pear of t...
5 years ago (José Filipe Lopes Santos)
60%StarStarStarStar