Reply to previous + next buttons, no DB

Your name:

Reply:


Posted by "Ashley M. Kirchner" on 10/20/91 11:24

I have a client that maintains picture galleries by simply dropping
images into a directory. I have a template created that when loaded,
with a specific $ID, will load the image that corresponds to that $ID.
The request now is to have previous and next buttons that web surfers
can click on to cycle through the rest of the images in the directory
(instead of having to close that pop-up and click on another image to
look at.)

What's the best way to go about this? Since I don't have a list of
images in any kind of array (such as a result from DB query), I'm a bit
at a loss here. Obviously if someone clicks on the first image on the
gallery page, it should only have a 'next' button, and if they click the
last image, it should only have a 'previous' button, but anything else
on the page should have a 'previous' and 'next' button. I just don't
know how to keep that relationship or how to start coding that.

Ideas/suggestions/pointers are much appreciated here.

--
R | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация