title: Php wont input data into database
body: <p>So im trying to get my data from my form submission to be put into a mysql database but whenever i submit a form it gives me this error: Error: INSERT INTO <code>form_submissions</code>(<code>ID</code>, <code>first</code>, <code>last</code>, <code>phone</code>, <code>class</code>) VALUES ([value-1],[value-2],[value-3],[value-4],[value-5])</p>
  
  <p>Now here is my PHP code:</p>
  
  <pre><code>&lt;?php
  $servername = "localhost";
  $username = "root";
  $password = "";
  $dbname = "form_database";
  
  $value = $_POST['first'];
  $value1 = $_POST['last'];
  $value2 = $_POST['phone'];
  $value3 = $_POST['class'];
  
  $conn = new mysqli($servername, $username, $password, $dbname);
  
  if ($conn-&gt;connect_error){
  die("connection failed: " . $conn-&gt;connect_error);
      }
  
  $sql = "INSERT INTO `form_submissions`(`ID`, `first`, `last`, `phone`,
  `class`) VALUES ([value-1],[value-2],[value-3],[value-4],[value-5])";
  
  if ($conn-&gt;query($sql) === TRUE) {
  echo "Submitted Successfully";
  } else {``
      echo "Error: " . $sql . "&lt;br&gt;" . $conn-&gt;error;
      }
  
  $conn-&gt;close();
  ?&gt;
  </code></pre>