Re: THANK YOU! - How to: If($var != '#' OR '#')
| From: | Jami | Date: | Wed, 20 Nov 2002 18:03:57 +0000 |
| Subject: | Re: THANK YOU! - How to: If($var != '#' OR '#') | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125285@lists.php.net to get a copy of this message | ||
Thanks all for the prompt responses. In case someone else searchs on the
list, the following code worked:
if($_GET['sc'] != '2' AND $_GET['sc'] !='8'){
do this.....
}
Thanks Jason, Jonathan W., John H, Ryan G., and Tony B.!
----- Original Message -----
From: "Jami" <jami@jamisniche.com>
To: "PHP General" <php-general@lists.php.net>
Sent: Wednesday, November 20, 2002 11:24 AM
Subject: [PHP] How to: If($var != '#' OR '#')
> I have code that says:
>
> if($_GET['sc'] != '2' OR '8'){
> do this.....
> }
>
> but I doesn't work. What do I need to do to get it to work? I have checked
> operator precendence and all that and am still confused on whether I
should
> be using '||' or 'OR' or something else... I have tried both of those, as
> well as 'XOR' and '^'. Help please!
>
> Jami
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>