title: PHP How to replace customers text area apostrophes with a escape character
body: <p>I tried asking this question a week ago but got no answer. Hoping to explain it better this time.</p>
  
  <p>My customer can input anything into a textarea and I am saving that to a MySQL table.</p>
  
  <p>how can I replace all of their apostrophes with a double apostrophe so I don't get a bad query?</p>
  
  <p>I tried the following it didn't work.</p>
  
  <pre><code>$description = str_replace("''", "'", $description);
  </code></pre>