title: delete a row based on id
body: <p>I am trying to delete a row based on its ID</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form action=""  method="post"&gt;
  &lt;input type="submit" name="delete" value=" delete "/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>        $u = $_REQUEST['edit']; // contains the ID of row to be deleted
  
          if(isset($_POST['delete'])){
              $db-&gt;exec("DELETE FROM infos WHERE id = '$u'");
          }   
  </code></pre>
  
  <p>Nothing happens when the delete button is pressed. How can I fix this?</p>