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

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -