adilmarwat Posted March 2, 2010 Share Posted March 2, 2010 I have two pic files one banner.jpeg and 2nd banner_chrismas.jpegI want to use these two jpeg files as banner in php file as that when the 25-Dec-2010 comes then the banner_chrismas.jpeg banner should be set as a banner for one day. and when the 26-December-2010 comes it may returned to banner.jpegHow it is possible. I need you kind help in this problemAdil Link to comment Share on other sites More sharing options...
ShadowMage Posted March 2, 2010 Share Posted March 2, 2010 Use the PHP date() function and conditional statements to write an img tag based on the date. Link to comment Share on other sites More sharing options...
adilmarwat Posted March 2, 2010 Author Share Posted March 2, 2010 please explain more, i have no more concept in programming. Link to comment Share on other sites More sharing options...
ShadowMage Posted March 2, 2010 Share Posted March 2, 2010 Did you follow the link I gave you?Here is a link for conditionals. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.