Thread: Need PHP Help!!
View Single Post
Old 08-01-2006   #7 (permalink)
Neil_8_24_93
Intermediate User
 
Neil_8_24_93's Avatar
 
Join Date: May 2006
Posts: 96

Send a message via AIM to Neil_8_24_93 Send a message via MSN to Neil_8_24_93
Here is a quick code.......

<html>
<body>
<?php
$d=date("D");
if ($d=="Fri")
echo "Have a nice weekend!";
else
echo "Have a nice day!";
?>
</body>
</html>

What this is basically saying is that if the date ($d) equals (==) Friday (Fri) then the echo would be Have a nice weekend!, BUT if the date equals any other day then the echo would be Have a nice day!
Neil_8_24_93 is offline