[Solved] MySQL search is too “loose” [closed]


You can try to force it to be a start of a string or start of a word:

$sql = "SELECT * FROM articles WHERE title LIKE '% ".$term."%' OR title LIKE '".$term."%'";

5

solved MySQL search is too “loose” [closed]