I never stored multiple values in one field but it's very useful. The only problem is that I don't know how to make a script for searching if one field contains multiple values.
My form contains checkboxes. If user checks first, second and fourth box, data in db will look like this:
1, 2, 4
The same for searching. Tf user selects first and fourth checkbox, the searchterms will be:
1, 4
But it's not possible to search in this way:
select from... where languages='$searchterms '
or
select from... where languages like '%$searchterms%'
I need to find all rows where field "languages" contains values "1 and 4" (in this example) even if there are other values in this row.
I hope you understand what I mean.
Thank you for any help.