Jump to content

Help with pagination (if that is the right term for it?)


Guest kilbad

Recommended Posts

I have a certain number of photos in a directory, and I want to display them with four on a page.

I know how to complete most of this project on my own, but here is a specific thing I need some help with::

I want to use php to determine the number of files in the directory, and then divide that number by four, and that is how many page links will be displayed at the top of the page (for easy browsing.. let's say there were 16 photos, it would read something like "go to page 1 2 3 4", each number being a link).  I would also need those page numbers to not only be rendered as links, but turned into variables so I could used the number as a seed to grab the correct four pictures (which, if someone can help me with, I can take it from there).

Thanks in advance.. you guys are the best!

Brendan

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.