Hm, I think this will be an easy question but I can't find an answer to it.
I have a column called "name" in a mysql table.
A input might look like "How to programme 13".
I select it like this:
"SELECT * FROM lists WHERE name LIKE '%to programme 13%'"
This returns the row. But I want to be able to search for "how programme" or "how to 13". How can I search for this and make it return a result?
Thanks
Edit:
So basically I have to split the search string variable before searching? I have a search string
$sw = $_GET['sw'];
"SELECT * FROM lists WHERE name LIKE '%".$sw."%'"