Paging Results With PHP and MYSQL - Part 1
Lets say you got a site that prints out some result based on a search or lists some items and it has hundreds of rows. Therefore, you end up having a lengthy list, which is hard to read. If your list contains images, hundreds of images get loaded on a single page. This is not appealing. I’m going to show you a way of dividing results into several pages and allow users to navigate through there results.
For this example, I am using mysql database called temp and a table called links.
The following code is the SQL statements i ran to generate a sample database for this example. Database name is called ‘temp’ and it has one table called ‘links’ (see SQL statements bellow). Then I have added some data to that table.