SELECT * FROM disney;
+++++++NAME+++++++
lion king
cinderella
the little mermaid
+++++++++++++++++++
$string = "i love the movie lion king, it rocks!"
I want to get the NAME from disney where the NAME is inside the given string. It's kinda like:
'SELECT * FROM disney WHERE NAME LIKE "%'.$string.'%";'
only the other way around (but didn't work well when i tried it).
Is there a MYSQL function to check whether a data in a table cell exists in a given string?
Thanks a lot! ().i'm working with PHP!