title: Unable to insert data in MySQL database
body: <p>Here is my code</p>
  
  <pre><code>mysql_connect('localhost', 'root', 'password');
  mysql_select_db('db');
  mysql_query("INSERT INTO metabase(url, title, image, description) VALUES('http://www.imgur.com/', '$title', '$image', '$descr')") or die();
  </code></pre>
  
  <p>It does not show any error but the values are not inserted in database. My table name is metabase. url, title, images are varchar(255) and description text. This is the error</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 's visual storytelling community. Explore, share, and discuss the best visual sto' at line 1
  </code></pre>
  
  <p>This is the description</p>
  
  <pre><code>The Internet's visual storytelling community. Explore, share, and discuss the best visual stories the Internet has to offer.
  </code></pre>
  
  <p>So it is because of <code>'</code> how do i correct it?</p>