I have created a really basic PHP photo gallery for my website, which gathers information from a MySQL database. Using a while loop, I list three images (from ID 1 to 3) in one row, and continue until 12 images have been displayed.
This works perfectly fine if you have uploaded 12 images, but some of my users have uploaded 12 and I need to know how to make another page for images 13-24, etc. I have looked at the source code of some PHP galleries yet nothing has helped me.