<?

$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:[EMAIL PROTECTED]]
Sent: 17 May 2001 09:56
To: [EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to