Re: Re: previous + next buttons, no DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff Loiselle wrote:

Ashley,

How are you creating the gallery page? You must be reading the filenames in the directory and producing an <img> for each one. Can you create an array of those filenames, save it to session (or generate it each time), and iterate through them?

   Say the images are in a folder called /gallery/

Within that, I have an index.php that is manually coded to have thumbnails of the images displayed in a grid. Important to note: they're in a very specific (artistic) order. Each one of those thumbnails is linked to one and the same popup.php file that is simply another php file that expects an $ID passed to it. That $ID, which again is hard coded in index.html, tells popup.php which file to display. (that $ID is basically the file name of the image, so I can append it to the <img /> tag as the page loads.

So you see, I have no array of anything. The index.html file gets manually edited every time something is added or removed. This is why I'd like a programmatic way of a) generating that file, so that the client can add/remove images as they see fit, and b) be able to have prev/next buttons on the popup window.

   Does that make sense?

--
R | I haven't lost my mind; it's backed up on tape somewhere.
 +--------------------------------------------------------------------
 Ashley M. Kirchner <mailto:ashley@xxxxxxxxxx>   .   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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux