You are here: Re: Developing a search field « PHP Programming Language « IT news, forums, messages
Re: Developing a search field

Posted by bobzimuta on 01/12/06 03:24

Also check out soundex() in mysql documentation.

In a query : SELECT first_name FROM people WHERE soundex( first_name )
= soundex( 'mark' )

will return something like the following
marcus
marko
.... (more)

Don't forget your 'like' queries as well...
SELECT first_name FROM people WHERE first_name LIKE 'mar%'

will return everything starting with 'mar'

You can also wrap strings for LIKE using '%string%' and '%string'

If you're interested in performance, text searching does take a bit of
computing power, so take that into consideration.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация