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

2005-08-18 Thread [EMAIL PROTECTED]
if you have all images in one directory and ONLY images in that folder you can try something like this: $path = '/path/to/directory/with/images'; $handle = opendir($path); while (false != ($file = readdir($handle))) { if ($file != "." && $file != ".." && !ereg('.php', $file))

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

2005-08-18 Thread Greg Donald
On 8/18/05, Ashley M. Kirchner <[EMAIL PROTECTED]> wrote: > Since I don't have a list of > images in any kind of array (such as a result from DB query) Sure you do. #!/usr/bin/php read() ) ) { $a[] = $e; } $d->close(); print_r( $a ); ?> -- Greg Donald Zend Certified Engineer MySQL Core Cer

[PHP] previous + next buttons, no DB

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