PHP Classes

Query Limit: Compute the LIMIT clause to get paginated results

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
Not enough user ratingsTotal: 363 All time: 6,881 This week: 455Up
Version License PHP version Categories
querylimit 0.1GNU Lesser Genera...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: 40
All time rank: 151624 in Turkey Turkey
Week rank: 170 Up2 in Turkey Turkey Up

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

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:363
This week:0
All time:6,881
This week:455Up
User Comments (1)
Hi !! Why you do not try use the package DB of the pear of t...
15 years ago (José Filipe Lopes Santos)
60%StarStarStarStar