samshel Posted July 4, 2008 Share Posted July 4, 2008 Hi All, Does anybody have idea about implementing "Did you mean ?" functionality like Google in PHP/MySQL? Let me explain in detail. I have a table containing search words. If a person types a wrong spelling by mistake and submits, the page should look for spellings who are closely matching with the entered word in the search word table and show the alternatives as "Did you mean" ? Example: Person enter "Amsterdm" No Results Found. Did you mean "Amsterdam" ? Thanks Link to comment https://forums.phpfreaks.com/topic/113226-did-you-mean-functionality-in-php-mysql/ Share on other sites More sharing options...
interpim Posted July 4, 2008 Share Posted July 4, 2008 have you looked into levenshtein method? http://www.php.net/manual/en/function.levenshtein.php Link to comment https://forums.phpfreaks.com/topic/113226-did-you-mean-functionality-in-php-mysql/#findComment-581692 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.