RE: [PHP] Re: previous + next buttons, no DB

2005-08-19 Thread Jim Moseby
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

Re: [PHP] Re: previous + next buttons, no DB

2005-08-19 Thread Ashley M. Kirchner
Jim Moseby wrote: If you use a naming convention for the files in /gallery/ that coincides with the artistic order in which they are to be displayed, then Greg's simple (yet elegant, and expertly coded) directory listing method would work like a charm. Unfortunately, they're not. This

[PHP] Re: previous + next buttons, no DB

2005-08-18 Thread Jeff Loiselle
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? -- PHP General Mailing List

Re: [PHP] Re: previous + next buttons, no DB

2005-08-18 Thread Ashley M. Kirchner
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

Re: [PHP] Re: previous + next buttons, no DB

2005-08-18 Thread Philip Hallstrom
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