Jump to content

Archived

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

Guest kilbad

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

Recommended Posts

Guest kilbad
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

Share this post


Link to post
Share on other sites
Has this PHPfreaks tutorial been any help to you?  Actually, I would like to know since I'll be doing this before long:

http://www.phpfreaks.com/tutorials/43/0.php

Share this post


Link to post
Share on other sites
i want to know how to do this too... the tutorial is too complex and on too many pages... i want it quick and easy...

Share this post


Link to post
Share on other sites
Guest kilbad
I thought that was a very good tutorial..  thank you for pointing me in its direction!

Brendan

Share this post


Link to post
Share on other sites

×

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.