Re: Creating 'Next' & 'Previous' for PHP Photo Gallery

From: Date: Tue, 10 Jul 2007 14:09:48 +0000
Subject: Re: Creating 'Next' & 'Previous' for PHP Photo Gallery
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-258544@lists.php.net to get a copy of this message
I know that $key holds the sequence of images that are being picked up by glob() - I¹m just trying to figure out a way to use this $key to generate the Next & Previous link. The problem is ­ everything is passed on to a separate page (photo.php) ... What I¹m thinking is determining which Photo File would be Next or Previous to the one being selected, and passing that along to the (photo.php) page. I¹m just not able to figure out how to pick out the next & previous filename and place it in the Query String.
Not sure if this will be of any help, but you could look at the Pager class in PEAR. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software

« previous php.general (#258544) next »