I have a database where values are stored like this:
Id Description
1 one,two,three,four,five
2 four,three,two
3 five,one
and also I have dynamic array coming from user like this:
1) $arr = array("five","one");
so I have to select description with id=1 and id=3 because their descriptions contains these words.
Another example
2) $arr = array("two","three");
so I have to select description with id=1 and id=2 because their descriptions contains these words.
so how to execute that query? Anybody can help?