php : improve my search results
<p>I have a search function in my website. </p>

<p>Well anyways, there is such text in my website like: "čurti" "čuožžut" and so on...</p>

<p>The problem is that when user searches with word "curti" not "čurti" it should find the page.</p>

<p>Some code to help to understand:</p>

<pre><code>$search = trim(mysql_escape_string($_POST["search"]));
$result = mysql_query("SELECT * FROM wt_pagesearchwords WHERE word='$search'");
</code></pre>

<p>You can see the part: <code>word='$search'</code>... so if user searches with word čurti, it will be like:</p>

<pre><code>$search = čurti;
$result = mysql_query("SELECT * FROM wt_pagesearchwords WHERE word='čurti'");
</code></pre>

<p>But that's not enough. I need it to convert the čurti to curti...</p>

<p>Detailed question: I have a empty single page that has only 1 search word, it is čurti... but if user searches with curti, it should also find that čurti although it's spelled in otherway...</p>

<p>This question is much like the Google search's "Did you mean blah blah?" when search returned nothing.</p>

<p>Anyway understood? Sorry my bad English</p>

<p>Thanks anyways,</p>
