How to stop get errors by typing ' mark
<p>I have a dictionary page. when I search something the link showing as <code>index.php?word=(search word here)</code> but when I add ' mark to this link like <code>index.php?word=**name'**</code></p>

<p>then showing this error Warning: </p>

<pre><code>mysql_fetch_array(): supplied argument is not a valid MySQL result resource in...  
</code></pre>

<p>how to stop this. and bypass ' mark</p>
