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 Quote 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']}' />"; Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.