Jump to content

how to get stop words less then 3 characters and spaces being entered


finestice

Recommended Posts

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.