php - MySQL query Where x = Anything -
i'm creating list of radio buttons filter down data base @ moment query im using is
select * table activities = '{$activities}' , climate = '{$climate}' , continent = '{$continent}
my problem end query "continent" has list of continents pick "any" radio button. causing error can't think of value need attach raido button in order select everything.
thanks,
you can use clause, , set %. pull continent stored on table.
select * table activities = '{$activities}' , climate = '{$climate}' , continent '{$continent}
https://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html
Comments
Post a Comment