This class can be used to show links to browse database query results split between multiple pages.
It takes as parameters limit of list entries per page, the number of the current page and an SQL query that returns the total number of query result rows.
The class returns an SQL query with a LIMIT clause to retrieve only the records to show in the current page.
It also shows links to browse query results in other pages besides the current page.
The texts to show on the links, the listing base URL, and other parameters are configurable. |