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 Quote Link to comment Share on other sites More sharing options...
mikecampbell Posted March 12, 2011 Share Posted March 12, 2011 (strlen(trim($search))<=3) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.