cactus Posted March 8, 2011 Share Posted March 8, 2011 Hi, I'm trying to create a cms and am encountering an error which I can't figure out. The error message reads: Parse error: syntax error, unexpected T_IS_NOT_EQUAL, expecting ',' or ')' in C:\wamp\www\cms\admin.php on line 6 The section of code that is giving me the error is as follows: if (isset( $_GET['action'] != "login") && $_GET['action'] != "logout" && !$_SESSION['username'] ) { //THIS IS LINE 6 login(); exit; } Is there anybody that can help me figure out what is going wrong? Thanks in advance Quote Link to comment Share on other sites More sharing options...
bh Posted March 8, 2011 Share Posted March 8, 2011 Hi, (isset( $_GET['action'] != "login")... ??? isset function: http://php.net/manual/en/function.isset.php try isset($_GET['action']) && ($_GET['action'] != "login") Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.