adilmarwat Posted March 2, 2010 Report 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 Report 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 Report 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 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now