Let say if i've database row settings [id,user,pass,sos]
I've the following mysql statement
$username
and $password
could be anything whatever
$query = mysql_query ("SELECT * FROM `settings` WHERE user='$username' AND pass='$password'")
i want to say
SELECT * FROM `settings` WHERE user='$username' AND pass='$password' or sos=$username and sos=$password
so my question is how to use or
within select statement
like i wanna say
user='$username'
pass='$password'
or
sos = both $username and $password
Thanks for helping