How to get the "Next" button on a webpage in PHP and MySQL
I have a table full of stuff which I want to print on screen 5 at a time, with a "next" button for the next page - how do I do this?
The list for each page is obtained with a:
SELECT NAME FROM table LIMIT $start, 5;
which is simple enough, then I think I need to do a :
SELECT count (*) FROM table ;, and check if there will BE a "next" page, and then generate the link for that at the bottom of the page - how do I do this?