Below is how the database is searched.
$query = "SELECT * FROM $tbl WHERE content LIKE \"%$var%\"";
$var includes the term or phrase searched for. But using the "LIKE" in the query doesn't seem to ignore whitespace or hyphens or commas (like i want it to)
E.g. if $var contains "helloworld" (what the user searched for) and the content row includes text which is either
"hello world" or "hello-world" or "hello,world"... it won't match it.
It also doesn't match substrings like if I searched "hello world" it wont match a phrase in the content such as "hello some words world"
Is there a way possible that I can work around this?