Jump to content


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


  • Please log in to reply
3 replies to this topic

#1 Guest_kilbad_*

Guest_kilbad_*
  • Guests

Posted 24 September 2006 - 06:48 PM

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



#2 WendyLady

WendyLady
  • Members
  • PipPipPip
  • Advanced Member
  • 38 posts

Posted 24 September 2006 - 10:30 PM

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...orials/43/0.php

#3 pro_se

pro_se
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts

Posted 24 September 2006 - 11:36 PM

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

#4 Guest_kilbad_*

Guest_kilbad_*
  • Guests

Posted 25 September 2006 - 05:53 PM

I thought that was a very good tutorial..  thank you for pointing me in its direction!

Brendan




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users