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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -