I deleted my previous post, i actually want to get more detailed in my problem i am having here.
I have a string that contains a list, each item of the list is seperated by a # sign. so my string looks like this:
$fruitstring = "apple#orange#cherrie#bannana#grape#";
now i want to perform a query on a table so if just one of those fruits is there, it will be selected. When i do this:
$sql = "select * from mytable where field1 like \"$fruitstring\" ";
it is looking for that whole string. How do i get it to select if field1 contains grape in one record, field1 in another recored is cherrie, and etc.....
Now i cant manipulate $fruitstring because it is actually pulling that from a different table so i am stuck with this string with # sign separators.
Please help , thanks