I have a search engine code that requires a search on a variable submitted by the user which generates in the address bar
EG. http://mywebsite.com/results.php?search=My+Lovely+Horse
“My Lovely Horse” having been what the user entered on a previous form
I am using this code:
$search = $_GET[‘search’];
and then using LIKE in the query to search my database for corresponding. HOwever, this only works for the first word “My.”
What kind of loop could i create around the above statement to ask it to search for any other words (“Lovely”, “Horse”) to return the result in full?
Does any of that make any sense?