I am developing a search system that will accomodate for partial search and suggested results based on a users input - where they can enter a word and it returns based on that word, if they mis-spell a word it will return the results based on the first and last letter of the search string
So is it possible to do the following query
$sql = "SELECT * from test WHERE itemName LIKE ('$f%$f2' OR '%$itemName%')";
$f%$f2 - where $f is the first letter of the search string and $f2 is the last
and obviously %$itemName% is a wildcard search based on the full string