Help - Search - Members - Calendar
Full Version: php "next and previous" image code?
Invision Power Services > Community Forums > Community Web Design and Coding
jamble
Hi folks,

probably a dead easy one for you php'ers but I was wondering if someone could show me / give me a tutorial link as to how I can make a simple display for some portfolio work?

Basically, I have lots of jpgs and gifs (about 100) in a specific folder on a site and I just want to make a php button so that users can click "next" and "previous" to view, well, the next and previous images in the directory. All the images can be named 1.jpg, 2.jpg etc and I want to display them at their original size, no thumbnails needed etc, how could I go about this?

many thanks original.gif
IAIHMB
Are you talking about something similar to this? http://webmonkey.wired.com/webmonkey/03/18/stuff/index.html#
If you don't mind doing it in JavaScript, here is a fairly simple tutorial: http://webmonkey.wired.com/webmonkey/03/18...?tw=programming

If you don't want to use JavaScript, search Google:
http://www.google.com/search?q=PHP+Slide+S...:en-US:official
jamble
thanks! my mind went blank when trying to think of the word slideshow!

I think the first one on google looks a good bet original.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.