have an array set up like it is below.
Just add each image you want with the two dates it should be displayed between according to the form below:
$array = (
"imagename.gif"=>array("12/05/2005", "12/25/2005")
"imagename2.gif"=>array("12/25/2005", "10/30/2006")
);
//So imagename.gif would be shown between 12/05/2005 and 12/25/2005 and imagename2.gif would be show between 12/25/2005 and 10/30/2006
// here's the code to display the right image:
$showDefault = true;
foreach($array as $key=>$value) {
$beginDate = $value[0];
$endDate = $value[1];
if((strtotime($beginDate) <= time()) && (strtotime($endDate) >= time())) {
$showDeafult = false;
echo("<img src=\"$key\">");
}
}
if($showDefault) {
echo("<img src=\"defaultimage.gif\">");
}
You'll have to change the stuff in the <img> tags to the correct location of the images on your server.