RE: [PHP] UGH
| From: | Taylor, Stewart | Date: | Thu, 17 May 2001 08:58:59 +0000 |
| Subject: | RE: [PHP] UGH | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53189@lists.php.net to get a copy of this message | ||
<?
$date = date ("d");
$math = 24 - $date;
if ($date == 24); { <---- '=' shoud be '=='
echo "<FONT SIZE=4 FACE=ARIAL COLOR=#808080>SCHOOL'S OUT FOR SUMMER!!!
*guitar ballad*</font>";
} else {
echo "<FONT SIZE=4 FACE=ARIAL COLOR=#808080>Only $math days until
school's out!!! w00p w00p!</font>";
}
?>
-----Original Message-----
From: chris herring [mailto:chrisherring@subdimension.com]
Sent: 17 May 2001 09:56
To: php-general@lists.php.net
Subject: [PHP] UGH
This is really bugging me. I don't see any reason why it shouldn't work, yet
it doesn't.
<?
$date = date ("d");
$math = 24 - $date;
if ($date = 24); {
echo "<FONT SIZE=4 FACE=ARIAL COLOR=#808080>SCHOOL'S OUT FOR SUMMER!!!
*guitar ballad*</font>";
} else {
echo "<FONT SIZE=4 FACE=ARIAL COLOR=#808080>Only $math days until
school's out!!! w00p w00p!</font>";
}
?>
any help is appreciated