Jump to content

PHP Search function - Individual keywords appearing in larger words


bigbrennan

Recommended Posts

Hi,

 

We have a PHP search function our site which searches various MySQL fields.

 

Our problem is this -

 

 

If you search for the word 'IT', the results shown will include any records with words such as 'with','british' because these contain the letters 'it'.

 

Is there a way we can tell the script to ignore keywords with letters around them, example:

 

Show anything with IT

Do not show anything with *IT*

* = wild card

 

Any help and assistance would be greatly appreciated.

 

Thanks

Are you searching column containing

 

a )  a single word

b )  several keywords (how separated?)

c )  sentences

d )  other

 

Are you searching using

 

i )  WHERE col LIKE 'x'

ii )  fulltext

iii)  other

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.