kralspace Posted September 27, 2007 Share Posted September 27, 2007 Hi all, I've been using various image rotating scripts that call the images in random order, but have you guys seen any that will let you call them in order, say, if you name them 001.jpg, 002.jpg, etc.? I need to construct a page that calls up a photo and the corresponding quote that goes with it. I have a good simple quotes files that will display them in order. I could create an image that has both the photo and text but I'd like to do live text if possible. thanks for any help, Kathy Link to comment https://forums.phpfreaks.com/topic/70935-php-script-that-rotates-images-in-order/ Share on other sites More sharing options...
nathanmaxsonadil Posted September 27, 2007 Share Posted September 27, 2007 something like this? if(empty($_SESSION['numbervar']) { $_SESSION['numbervar'] == 1; }else{ $_SESSION['numbervar']++; } echo "<img src='image{$_SESSION['numbervar']}' />"; Link to comment https://forums.phpfreaks.com/topic/70935-php-script-that-rotates-images-in-order/#findComment-356588 Share on other sites More sharing options...
kralspace Posted September 27, 2007 Author Share Posted September 27, 2007 that certainly makes sense, thanks, I'll try it. Link to comment https://forums.phpfreaks.com/topic/70935-php-script-that-rotates-images-in-order/#findComment-356607 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.