finestice Posted March 12, 2011 Share Posted March 12, 2011 hi, i have a search engine that searches keywords in mysql database... i have a simple form but if someone enters a load of spaces it displays the whole database contents.. also i wanna remove any words less then 3 characters being searched for.. i have (strlen($search)<=3) what else should i add?? cheers Link to comment https://forums.phpfreaks.com/topic/230442-how-to-get-stop-words-less-then-3-characters-and-spaces-being-entered/ Share on other sites More sharing options...
mikecampbell Posted March 12, 2011 Share Posted March 12, 2011 (strlen(trim($search))<=3) Link to comment https://forums.phpfreaks.com/topic/230442-how-to-get-stop-words-less-then-3-characters-and-spaces-being-entered/#findComment-1186696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.