This class can be used to display navigation links to browse MySQL query results.
It takes an SQL query and counts the number of rows that it returns.
The class executes the SQL query to retrieve the results to display in the current page.
It generates HTML links to go to the different pages the listing of the query results, considering a given limit of results to show per page and the number of the current page.
The class also generates forms with select input fields to go to the different listing pages and the user changes the current page selected value.
The navigation links CSS class is configurable. |