title: Delete row in mysql via form input by id
body: <p>I am attempting to remove mysql row data via input from a form. I can not get the data to delete from my table or throw any errors. I simply would like to type in my form in the id I would like to remove from my database. </p>
  
  <pre><code>&lt;?php 
  $con = mysql_connect("localhost","root","######");
  if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
  
  mysql_select_db("test", $con);
  $sql = mysql_query("DELETE FROM `Blog` WHERE `Id` = '$id'")  or die (mysql_error());
  
  $id = $_GET['Id'] ;
  ?&gt;
  
  &lt;form action="#" method="get"&gt;
   Delete: &lt;input type="text" name="Id"&gt;&lt;br&gt;  
           &lt;input type="submit" value="delete"&gt;
  &lt;/form&gt;
  </code></pre>