RE: [PHP] "IF" statements

From: Date: Wed, 23 May 2001 03:07:00 +0000
Subject: RE: [PHP] "IF" statements
Groups: php.general 
Request: Send a blank email to php-general+get-53970@lists.php.net to get a copy of this message
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) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: chris herring [mailto:chrisherring@subdimension.com] Sent: Wednesday, May 23, 2001 11:58 AM To: php-general@lists.php.net 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."

« previous php.general (#53970) next »