Jump to content

What is wrong here


Panjabel

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/61309-what-is-wrong-here/#findComment-305048
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.