title: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL
body: <p>Help me out, Im using localhost and getting this error whenever i fill out the form and click on submit button</p>
  
  <blockquote>
    <p>Error: 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 ''aw-tech'.'contact' (name, email, phone, question) VALUES
    ('prince', 'khan@princ' at line 1</p>
  </blockquote>
  
  <p><strong>My PHP CODE SQL</strong></p>
  
  <pre><code>mysql_select_db("aw-tech", $con);
  
  $sql = "INSERT INTO 'aw-tech'.'contact' (name, email, phone, question) 
              VALUES ('$_POST[name]', '$_POST[email]', 
                      '$_POST[phone]', '$_POST[question]')";
  </code></pre>