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
> [EMAIL PROTECTED]
> 
> www.marquez-design.com
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to