Guest kilbad Posted September 24, 2006 Share Posted September 24, 2006 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 Quote Link to comment Share on other sites More sharing options...
WendyLady Posted September 24, 2006 Share Posted September 24, 2006 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 Quote Link to comment Share on other sites More sharing options...
pro_se Posted September 24, 2006 Share Posted September 24, 2006 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... Quote Link to comment Share on other sites More sharing options...
Guest kilbad Posted September 25, 2006 Share Posted September 25, 2006 I thought that was a very good tutorial.. thank you for pointing me in its direction!Brendan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.