PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Now that I have my template set up to display the contact of a MySQL database correctly via PHP I wish to edit the PHP used so it will on the first page display the first 10 records, and then I can create a second page for the next 10 results etc etc.
The PHP used is
You will have to append the sql query as show above. 10 will be constant as it is the amount of items per page but 0 will change with each page because it is the number from which to select the records. On page 2 it will be LIMIT 10, 10 on page 3 LIMIT 20, 10, etc. Search for 'pagination' in the forum as the topic have been covered a few times.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering