JADASDesigner Posted June 19, 2008 Share Posted June 19, 2008 I need specific pictures to appear at specific times throughout the day. Any help? ??? Quote 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. ?> Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.