I am trying to build a search query where suppose if we type a word stem, it should show words starting with stem and whatever follows after that. Right now, my code looks like this:
$sql = "SELECT * FROM `faculty`
WHERE (CONCAT(`firstName`, ' ', `lastName`,`expertise`,`affiliation`)
LIKE '%$textSearch%') ORDER BY lastname asc";
If I search stem in the search bar, it will show unneccessary words like 'System'.