1. Find what today is? using date function and keep answer in variable name "$today".
2. Compare $today with name of the day.
3. Display "Today is " ... " and display image of the day.
4. test it. Try to change your machine date and see the result!
$today=date(l);
if($today==Monday){ .
echo "Today is Monday";
echo "<BR>";
echo "<img src='images/image1.gif'>";
}
-----------------------------------------------------------------------------------------------------------------
If You want to show 1 month 31 images replace with this code
$today=date(d);
if($today==01){ .......
elseif($today==15){ .......
until $today==31
|