title: SQL error inserting into table
body: <p>I keep getting this error in my php. It worked fine when I hard set the values but doesn't seem to work with variables.</p>
  
  <blockquote>
    <p>Error: INSERT INTO ContactUS (name, email, subscribed) VALUES (TEST, my@email.com, 1)
    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 'Anis, my@email.com, 1)' at line 1</p>
  </blockquote>
  
  <pre><code>// Create connection
              $conn = new mysqli($servername, $username, $password, $dbname);
              // Check connection
              if ($conn-&gt;connect_error) {
                  die("Connection failed: " . $conn-&gt;connect_error);
              } 
  
              $sql = "INSERT INTO ContactUS (name, email, subscribed) VALUES ($name, $email, $subscribed)";
  
              if ($conn-&gt;query($sql) === TRUE) {
                  echo "New record created successfully";
              } else {
                  echo "Error: " . $sql . "&lt;br&gt;" . $conn-&gt;error;
              }
  </code></pre>