Re: wierd if statement problem
| From: | Jason Wong | Date: | Wed, 21 May 2003 06:38:42 +0000 |
| Subject: | Re: wierd if statement problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148368@lists.php.net to get a copy of this message | ||
On Wednesday 21 May 2003 14:06, daniel@electroteque.org wrote:
> this is wierd i have not experienced this before , but i am doing groupId
> checking for my authentication system , say i'm logged is as admin , but
> also need to check for super user access
>
> if (($_SESSION['groupID']!==1) || ($_SESSION['groupID']!==2)) i've
> done
> this before but for some reason its not working now ??
The above statement looks perfectly OK.
- What does $_SESSION['groupID'] contain?
- What did you expect to happen?
- What actually happened?
My guess is that you want a logical AND rather than OR.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The verdict of a jury is the a priori opinion of that juror who smokes
the worst cigars.
-- H. L. Mencken
*/