Why doesn't work?
$date = 24;
$hour = 3;
if ($date == 24 && $hour == 3) { echo 'works'; }
If does not print you 'works': the sky will crash to the ground.
I think you just got confused elsewhere in your code.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: chris herring [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 23, 2001 11:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] "IF" statements
Ok, use your imaginations and visualize what I'm trying to do with this,
because I'm not quite sure how to explain it. Anyway, I'm trying to have a
script that says when THIS_VAR and THAT_VAR are a certain number it show
something. I'm not quite sure how to do that without making yet another var
that would screw up things even more. Anyway, this might help some people
with what I'm trying to do:
if ($date == 24 && $hour == 3) { }
But that doesn't work... Any help is appreciated
-chris
"Fat people eat."
--
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]