IF certain day (Sunday, Monday, etc) show certain IMAGE
-
How can I accomplish this:
IF [Monday] show text “DAY ONE” and image1 and image2
IF [Tuesday] show text “DAY TWO” and image2 and image3
IF [Friday] show text “DAY FIVE” and image1 and image2 and image 3Found this code, but I dunno how to change it so it work properly
<?php switch(date('N')) { case 1: ?> <div class="monday"> mo<!--whatever--> </div> <?php break; case 2: ?> <div class="tueday"> tu<!--whatever--> </div> <?php break; case 3: ?> <div class="wednesday"> we<!--whatever--> </div> default: } ?>
Thank you very much!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘IF certain day (Sunday, Monday, etc) show certain IMAGE’ is closed to new replies.