JADASDesigner Posted June 19, 2008 Share Posted June 19, 2008 I need specific pictures to appear at specific times throughout the day. Any help? ??? Link to comment https://forums.phpfreaks.com/topic/110893-solved-dynamic-loading-of-pictures-based-on-the-time/ Share on other sites More sharing options...
Stephen Posted June 19, 2008 Share Posted June 19, 2008 I posted something similar in another thread. <?php $_hour=date("G"); if (intval($_hour)<0 && intval($_hour)>1) { //show image 1 } else if (intval($_hour)<1 && intval($_hour)>2) { //show image 2 } //etc., follow the pattern. ?> Link to comment https://forums.phpfreaks.com/topic/110893-solved-dynamic-loading-of-pictures-based-on-the-time/#findComment-568926 Share on other sites More sharing options...
defeated Posted June 19, 2008 Share Posted June 19, 2008 Hey, that sounds interesting. Could I use something like it as an alternative to flash? I could create a sequence of images in the db and then call them at an interval of x seconds? Is that possible? Link to comment https://forums.phpfreaks.com/topic/110893-solved-dynamic-loading-of-pictures-based-on-the-time/#findComment-568973 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.