Panjabel Posted July 23, 2007 Share Posted July 23, 2007 if ($_GET['where']!=="usa") || ($_GET['seeking']!=="uk") { } Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 23, 2007 Share Posted July 23, 2007 !== is not an operator this will help http://www.w3schools.com/php/php_operators.asp http://us.php.net/manual/en/language.operators.php Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 23, 2007 Share Posted July 23, 2007 if ($_GET['where']!=="usa") || ($_GET['seeking']!=="uk") { } if ($_GET['where']!=="usa" || $_GET['seeking']!=="uk") try that !== this means if im not mistaken its comparing the equality and data types like when you have 0==='0' so its not the same !== is not an operator this will help http://www.w3schools.com/php/php_operators.asp http://us.php.net/manual/en/language.operators.php Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 23, 2007 Share Posted July 23, 2007 http://us.php.net/manual/en/language.operators.comparison.php yes they are in php 4 and greater. My bad didn't realize that I never go beyond the == Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 23, 2007 Share Posted July 23, 2007 Quote Link to comment Share on other sites More sharing options...
Panjabel Posted July 23, 2007 Author Share Posted July 23, 2007 doesn't work too i tried !- doesn't work in no way please help Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 23, 2007 Share Posted July 23, 2007 edited....... try if ($_GET['where']!="usa"|| $_GET['seeking']!="uk") or show a little code of that Quote Link to comment Share on other sites More sharing options...
Panjabel Posted July 23, 2007 Author Share Posted July 23, 2007 if ($_GET['where']!="usa") || ($_GET['seeking']!="uk") { print "ok"; } else print "no"; got error: Parse error: syntax error, unexpected T_BOOLEAN_OR in test.php on line 20 Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 23, 2007 Share Posted July 23, 2007 because of this if ($_GET['where']!="usa") || ($_GET['seeking']!="uk") your condition have two seprate ()() try to remove )( if ($_GET['where']!="usa" ||$_GET['seeking']!="uk") look carefully on my codes and your code heres yours ($_GET['where']!="usa") || ($_GET['seeking']!="uk") Quote Link to comment Share on other sites More sharing options...
Panjabel Posted July 23, 2007 Author Share Posted July 23, 2007 if ($_GET['where']!="usa" || $_GET['seeking']!="uk") { print "ok"; } else print "no"; doesn't work too Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 23, 2007 Share Posted July 23, 2007 if ($_GET['where']!="usa" || $_GET['seeking']!="uk") { print "ok"; } else print "no"; doesn't work too im very sure the prob is not there pls post more of your code 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.