Databases: Classe Paginazione
StefanoV89 (contact me)
This class can be used to display links to browse MySQL query results.
It takes as parameters an SQL query, the number of results display per page and the name of request variable that will be used to pass the number of the page to browser in the links.
The class executes the query to retrieve only the results of the current page and stores the results in a class variable.
It also returns an array with the URLs of the number of the pages to put in links to go to the current, previous, next, first, last listing pages.
The code and comments are in Italian.
Click here for detailed information about this class on phpclasses.org