title: MySQL query is not working when I use single apostrophe symbol ( ' ) in query
body: <p>I am creating simple form using PHP and MySQl. But When I enter the apostrophe symbol (') as input in one of the textbox in the form, the query is not working. It does not insert any record to the database due to apostrophe symbol. </p>
  
  <p>Following is the simple example of MySQL query using PHP. </p>
  
  <pre><code>mysql_query("insert into users (username,passwd,name,mobile) values ('$username','$passwd','$name','$mobile')")
  </code></pre>