Databases: Query Limit
Eren Ezgü (contact me)
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.
Click here for detailed information about this class on phpclasses.org