Hai I had a search script in my web page. There are two inputs
1. Type
2. Location ( list with values --> Any,India,China)
And location is not mandatory for search.
When user submit search in database and show results.
my query is like this
"SELECT * from dbname where type='$type' and location='$location'"
Works fine. And if user select location "any" then this will work
"SELECT * from dbname where type='$type'"
. I simply do it with "if" statement.
if($location=="any"){
do
}else {
do
}
But now I had more than 4 fields like gender, married,with photo....
How can I do it with a simple query.. I think if is not possible.
Please give me a little help
Thanks
Rajeesh