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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.