title: Trouble inserting html form data into phpmyadmin database
body: <p>I'm having trouble inserting form data into my database. It connects successfully to the database, but the data just doesn't get inserted into my MySQL database. Hope you can help! Thank you in advance!</p>
  
  <p>This is the form code:</p>
  
  <pre><code>&lt;form id="score" method="post" action="process.php"&gt;
   &lt;fieldset&gt;
          &lt;div class="box1"&gt;
      &lt;legend&gt;Your details&lt;/legend&gt;
      &lt;ol&gt;
          &lt;li&gt;
              &lt;label for=name&gt;Name&lt;/label&gt;
              &lt;input id=name name=name type=text placeholder="First and last name" required autofocus&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;label for=email&gt;Email&lt;/label&gt;
              &lt;input id=email name=email type=email placeholder="example@domain.com" required&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;label for=phone&gt;Phone (country code if overseas)&lt;/label&gt;
              &lt;input id=phone name=phone type=tel placeholder="Eg. +447500000000" required&gt;
          &lt;/li&gt;
      &lt;/ol&gt;
      &lt;/div&gt;
  &lt;/fieldset&gt;
  &lt;fieldset style="border: none;"&gt;
      &lt;button type=submit&gt;Continue&lt;/button&gt;
  &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is the php code (filename process.php):</p>
  
  <pre><code>&lt;?php
  if( $_POST )
  {
  $con = mysql_connect("localhost","database_user","password");
  
  if (!$con)
  {
      die('Could not connect: ' . mysql_error());
  }
  
  mysql_select_db("database_name", $con);
  
  
  $insert_query = "insert into feedback(
                  name,
                  phone,
                  email
                      ) values (
              ".$_POST['name'].",
              ".$_POST['phone'].",
              ".$_POST['email'].")";
  
  ($insert_query);
  
  echo "&lt;h2&gt;Thank you for your feedback!&lt;/h2&gt;";
  
  mysql_close($con);
  }
  ?&gt;
  </code></pre>