I want to pass 3 varibles from a form to a MySQL select statement.
example:
the user wants to search by name, city and country. or just name, or just country or just city etc.
with me??
I could have a different select statement for every possibility but this is rather long and annoying.
i want to be able to have
"SELECT * FROM my_table WHERE name='$name', city='$city', country='$country'
if one or more of the 3 hasn't been chosen in the form then it is ignored? Is this possible to do??
Hope that all made sense,
hugh