Re: similar_text
| From: | David Otton | Date: | Tue, 21 Oct 2003 16:03:53 +0000 |
| Subject: | Re: similar_text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166969@lists.php.net to get a copy of this message | ||
On Tue, 21 Oct 2003 17:42:17 +0200, you wrote:
>does any one have an example of a function to search a database for similar
>names and display them if the user inputs a name that is not found?
Are you looking for SOUNDEX, perhaps?
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=SOUNDEX+algorithm
PHP and MySQL both have soundex functions. There are other "sounds like"
algorithms out there (eg Metaphone).