|
PHP: Something is wrong in my IF statement?
|
|
19.12.2012, 09:19
Beitrag #1
|
||||
|
||||
|
PHP: Something is wrong in my IF statement?
I have my $_SESSION['ugid']=1.But why it still falls into the IF block? Something wrong with my condition statement? Please advise. Thanks.
if(($_SESSION['ugid']!="1")||($_SESSION['ugid']!="2")) { $_SESSION['error']="access"; header("location:../error.php"); } |
||||
|
02.01.2013, 15:53
Beitrag #2
|
||||
|
||||
|
RE: PHP: Something is wrong in my IF statement?
Code: if(($_SESSION['ugid']!="1")&&($_SESSION['ugid']!="2"))Linux is like a tent, no windows, no gates, and an apache inside. |
||||
|
|
Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste




