I have a search problem with phrases, I have a search field and I am using the LIKE operator to do this, but it is not serving me correctly, I have tried to use SOUNDEX now, but it only returns one word with the same phonetic than the other word, what I need is to find a word between a phrase. Here is my SQL code.
$sql = "SELECT * FROM tabela WHERE LOWER('') LIKE LOWER('%$valor%')";