Alright, I tried to word the title as well as possible. Here's what I'm looking for...let's say I've got a row with an ID of 3 in a table called 'table' with a 'col1' value of "apple,potato,carrot,squash" that I want to search.
I want to be able to do a search something like this:
SELECT * FROM table WHERE col1 LIKE '%potato%' OR col1 LIKE '%apple%';
...and I want it to result in two separate results for the row with the ID of 3.
I could parse out the results with PHP obviously, but it seems a lot more efficient to just get the results exactly as I want them directly from MySQL. Is there a way to do this?
(Note that this is not a homework assignment or anything, I'm just trying to be as generic as possible for the sake of the example)