title: Adding delete button for rows on html table in php
body: <p>I am trying to make it such that there is a delete button that can be pressed and it deletes the column where you pushed the delete button. I have done extensive research and I can't seem to figure it out.</p>
  
  <p>Here is the PHP and HTML:</p>
  
  <pre><code>&lt;?php
  
  
  $username="xxx";
  $password="xxx";
  $database="xxx";
  mysql_connect(localhost,$username,$password);
  @mysql_select_db($database) or die( "Unable to select database");
  
  
  $query="SELECT * FROM reservation__date ORDER BY reservation_date DESC";
  $result = mysql_query ($query) or die(mysql_error());
  
  $num=mysql_numrows($result);
  mysql_close();
  ?&gt;
              &lt;table width="700" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC" id="myTable" class="tablesorter"&gt;
    &lt;thead&gt; 
          &lt;tr valign="bottom" bgcolor="#000000"&gt;
            &lt;th width="128"&gt;&lt;span class="style1b"&gt;&lt;strong&gt;Reservation&amp;nbsp;ID&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt;
            &lt;th width="829" bgcolor="#2E64FE"&gt;&lt;span class="style1b"&gt;&lt;strong&gt;Reservation&amp;nbsp;Date&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt;
            &lt;th width="829"&gt;&lt;span class="style1b"&gt;&lt;/span&gt;&lt;/th&gt;
            &lt;!--  &lt;th width="90"&gt;&lt;span class="style1b"&gt;&lt;strong&gt;Agent/client&lt;/strong&gt;&lt;/span&gt;&lt;/th&gt;--&gt;
            &lt;/tr&gt;
          &lt;/thead&gt; 
  &lt;?php
  
  $i=0;
  while ($i &lt; $num) {
  
  $f1=mysql_result($result,$i,"reservation_id");
  $f2=mysql_result($result,$i,"reservation_date");
  ?&gt;
  </code></pre>