I have created my SELECT statement in my sql query. When a user types in a word, the query should return all rows with that word in it. The problem I am having, is either they must enter every word in the ENTIRE field for this statement:
"SELECT * FROM table WHERE recipe LIKE '$recipe'"
and if I put % around the word recipe ('%$recipe%', it finds everything containing the word in the varibale.
The problem with that, is if they type in "cup", not only does it bring up cup, but it will also bring up "cupcake". I need it to bring up the word they entered and that only.
What do I need to do?
Thanks!
Seth