Hi all,
I'm trying to write a query that will find any or all in a set in a MySQL table.
The table set contains (0,1,2,3,4,5,6,7,8,9,10) as possibilities.
The web page has checkboxes with values that coorespond to each of the possibilities.
If the user checks boxes with values 0 and 1 (for example), I would like to return records that contain 0 and/or 1 (but not necessarily 10, unless of course the record also has a 1 in it).
What I've got now is
LIKE'0%1%'
But that also returns records that have 10, but not 1.
The same results occur if I do this
LIKE'0%1'
How can I accomplish the above question? Is there some sort of "IN" statement that can be used? Like ("0", "1") IN COLUMN type thing?
Thanks.