Re: if and...

From: Date: Tue, 01 Jul 2003 01:16:56 +0000
Subject: Re: if and...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153501@lists.php.net to get a copy of this message
if( $biz == "my_business" && $id_num == 1 ) { echo "stuff..."; } if $biz is a string and $id_num is an int... -- BigDog On Mon, 2003-06-30 at 19:09, Steve Marquez wrote: > 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 (#153501) next »