The following code will dispaly a greeting message only on Christmas day.
<?php
if ((date('m') == 12) && (date('d') == 25)) { ?>
<h2>Merry Christmas!</h2>
<?php } ?>
Revisions
There are no revisions for this post.
The following code will dispaly a greeting message only on Christmas day.
<?php
if ((date('m') == 12) && (date('d') == 25)) { ?>
<h2>Merry Christmas!</h2>
<?php } ?>
There are no revisions for this post.
You must be logged in to post a comment.
No comments yet.