if and...

From: Date: Tue, 01 Jul 2003 01:09:32 +0000
Subject: if and...
Groups: php.general 
Request: Send a blank email to php-general+get-153500@lists.php.net to get a copy of this message
I am trying to get php to use two conditions. <?php if ($biz = my_business and $id_num = "1"){ echo "stuff...." } if ($biz = "my_business" and $id_num ="2"){ echo "other stuff...." } ?> My question Is, I am not sure if the "and" is correct, it does not work. Is there another way to do this? I have tried a plus (+), a (,) and nothing seems to work. Could someone please help? Thanks! Steve Marquez Marquez Design smarquez@marquez-design.com www.marquez-design.com

« previous php.general (#153500) next »