I have this form which i use it to search specific records from the database.
This is the query:
$sql = "select * from `hostess` where first_name_en like '%$term' or family_name_en like '%$term%' order by `family_name_en` asc";
The issue is that if i search i.e ele there come all the names which contain ele, such as elena, etc etc, but if i write elena nothing comes up.
How come?
Is there a reason why you didn’t use the
%at the end of thefirst_name_envalue ?Edit : For the uppercase-lowercase problem :