inductinve soul
New Member
- Messages
- 4
- Reaction score
- 0
- Points
- 0
<?php
$d=date("D"); if ($d=="Fri") echo "Today is Friday,";
elseif ($d=="Sat") echo "Today is Saturday,";
elseif ($d=="Sun") echo "Today is Sunday,";
elseif ($d=="Mon") echo "Today is Monday,";
elseif ($d=="Tue") echo "Today is Tuesday,";
elseif ($d=="Wed") echo "Today is Wednesday,";
elseif ($d=="Thu") echo "Today is Thursday,";
else echo "How maddening the script has a error!";
?> <?php echo date("F j, Y, g:i a"); ?>
Now the script works... but it would be nice if I didn't have two PHP scripts running. I am actually quite embarrassed that I could not figure out how to combine the two after half an hour of playing around, so any help would be appreciated..
$d=date("D"); if ($d=="Fri") echo "Today is Friday,";
elseif ($d=="Sat") echo "Today is Saturday,";
elseif ($d=="Sun") echo "Today is Sunday,";
elseif ($d=="Mon") echo "Today is Monday,";
elseif ($d=="Tue") echo "Today is Tuesday,";
elseif ($d=="Wed") echo "Today is Wednesday,";
elseif ($d=="Thu") echo "Today is Thursday,";
else echo "How maddening the script has a error!";
?> <?php echo date("F j, Y, g:i a"); ?>
Now the script works... but it would be nice if I didn't have two PHP scripts running. I am actually quite embarrassed that I could not figure out how to combine the two after half an hour of playing around, so any help would be appreciated..