I have a field in my database table which is an imploded array of whole numbers that uses commas as glue. These numbers represent ID's for rows within another table.
For example, this field can contain any of the following values:
2 2,5,12 5,6 14 4,12,55 etc.
How would I do a search for all rows which contain, say, "5" in said field?
Lets say I want to find the rows which contain "5", so it would find rows with any of the following for said field:
5 5,12 3,5,8 1,4,5 etc.
Any help is greatly appreciated.