How can I resolve single quote problem while I insert?
<p>What is the best way to avoid <code>\'</code> while we get the values from PHP post method and want to store in the database.  I have used simply , <code>echo $_POST['txtname'];</code></p>

<p>it produces the output <code>Uncl\'es Jules</code>,  if enter name as <code>Uncl'es Jules</code></p>

<p>Can any one suggest the better way?</p>
