title: SQL Error when using apostrophes
body: <p>I'm getting the following error whenever I try to post something with an apostrophe in it:</p>
  
  <pre><code>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near...
  </code></pre>
  
  <p>For example when I'm trying to post/using INSERT something like "I'm working hard".It's getting me an error. If I write "I am working hard" everything is fiine.</p>
  
  <p>The code is:</p>
  
  <pre><code> $sql="INSERT INTO tb_table (`postcontent`, `userid`, `posttime`) VALUES ('".$_POST[content]."', '".$user_id."', '".time()."')";
  </code></pre>
  
  <p>Any ideas how to fix it?</p>