Example page for the MyPagina Pagination class
This information shows the current range of records and the total number of records.
Result: 1 - 5 of 40 records
These are the example database records (id and titel):
- 7PHP: Hypertext Preprocessor
- 8MySQL AB
- 22World Wide Web Consortium
The navigation() method is showing this kind of links:
Notice the large number for the current link, you can modify the style using a CSS pseudo class.
The same method then before using number buttons and without forward/backward links:
The back_forward_link() method, shows only for- and backward links (you can use it for small recordsets).
This example is using images:
But you can use the same method with text or symbols too.
Click here for the PHP Pagination Class.