tags:

views:

78

answers:

3

For example, i want to search a word 'marple', this should return row with near or exact word like 'marble','maple','marple', etc...

How to do it in mysql query? or better give word suggestion if any?

Thanks,

A: 

In MySQL you can try use soundex function, but it's not a real solution. Use Sphinx or Lucene.

peperg
+1  A: 

SOUNDEX function.

"Two strings that sound almost the same should have identical soundex strings."

HeavyWave
thanks for the suggestion..i'll give it a try.
Trez
A: 

Hello,

You can use this

$sql = "select * from tbl_name where your_field like '%your search keyword%'";

Kanak Vaghela