title: adding a delete button in php
body: <p>I have created a table of items that are in my DB, it comes out perfectly however I would now like to add a delete button in another column of the data I am outputting.</p>
  
  <p>However I am just not sure how to do it, I do have a uniqueid for each of the tables so could I use that as the id or what ever you would call it of the button?</p>
  
  <pre><code>&lt;?php
  
  //Start session
      //... all the connection stuff here
  
  
  $result = mysql_query("SELECT * FROM feathermattresstoppers");
  
  echo "&lt;table border='1'&gt;
  &lt;tr&gt;
  &lt;th&gt;name&lt;/th&gt;
  &lt;th&gt;old price&lt;/th&gt;
  &lt;th&gt;price&lt;/th&gt;
  &lt;th&gt;delete&lt;/th&gt;
  &lt;/tr&gt;";
  
  while($row = mysql_fetch_array($result))
    {
    echo "&lt;tr&gt;";
    echo "&lt;td&gt;" . $row['name'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['old_price'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['price'] . "&lt;/td&gt;";
  echo "&lt;td&gt;"&lt;!-- how could I add a button here? --&gt;"&lt;/td&gt;";
    echo "&lt;/tr&gt;";
    }
  echo "&lt;/table&gt;";
  
  ?&gt;
  </code></pre>
  
  <p>any help would be appreciated.</p>