title: MySQL Query not inserted when PHP variable contains single quotes
body: <p>This query not inserted when variable $subject has single quotes . Is there any possible solution available ?</p>
  
  <pre><code>mysql_query("INSERT INTO  table  (to_email_id,subject) values('$to','$subject');");
  </code></pre>