php code widget
-
<?php $target = mktime(0,0,0,4,7,2011); $today = time(); $difference = ($target-$today); $days = (int)($difference/86400); if ((date('m') == 4) && (date('d') == 7)) { print "<h2>Game On!</h2>"; } else { print "<h2>$days days to go!</h2>"; } ?>
I have the following code which works fine – how do I add html code to make the $days in a red font?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘php code widget’ is closed to new replies.