Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

str_replace and search result

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
If the data in the mysql have some spelling errors i.e. added the letters o, u, s, to some words like that:

$string="Click the fourums name to add it to your list.";
and
$searchword="forum";
is there any method "maybe using str_replace" to allow the result of the search display : Click the fourums name to add it to your list. As written in the database even the user enterthe word "forum"
Thanks in advance.
 
Well, you could create a list of all the correct-wrong spelling pairs and do searches on everything. If you start messing with the word you start with and have no goal as to how it needs to turn out, you could match anything with anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top