Panjabel Posted July 23, 2007 Share Posted July 23, 2007 if ($_GET['where']!=="usa") || ($_GET['seeking']!=="uk") { } Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/ 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 Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305046 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 Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305048 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 == Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305050 Share on other sites More sharing options...
teng84 Posted July 23, 2007 Share Posted July 23, 2007 Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305051 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 Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305053 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 Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305055 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 Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305058 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") Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305060 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 Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305061 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 Link to comment https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305064 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.