I am storing the check box value as comma separated value in db like
Features
1,3,4
1,2,3,4,5
3,4,5,6
Now while searching i need to select the record based on the user select the check-box, say example if user selects 1 and 6 needs to fetch matched record. I am getting selected check-box value as array like (0=>1,1=>6). I dont know how to loop through this like FIND_IN_SET(1,Features) OR FIND_IN_SET(6,Features)
It has to come like
SELECT * FROM table WHERE FIND_IN_SET(1,Features) OR FIND_IN_SET(6,Features)
Update: