title: add edit button to each row in html table, to edit database
body: <p>I am relatively new to php, and need help with a program i am doing for an internship... on the page i am trying to create, i queried all records in the mysql database, and inserted them into an html table. What i am trying to do, is also add an edit button in a separate column of each row of the table, so the rows can be edited.. i know how to get the button there, but i do not know how i can get the values out of that particular row, into a php variable so i can perform more queries to edit, delete, etc... I have been looking for a couple days, and it looks like it may be possible to do with javascript, but i have never used javascript before, so i do not know what im looking at... help would be much appreciated</p>
  
  <p>basically:</p>
  
  <pre><code>&lt;html&gt;
  &lt;table border="1"&gt;
  
  &lt;th&gt;Suspended&lt;/th&gt;
  &lt;th&gt;Device Name&lt;/th&gt;
  &lt;th&gt;IP&lt;/th&gt;
  &lt;th&gt;Depend&lt;/th&gt;
  &lt;th&gt;Email&lt;/th&gt;
  
  &lt;?php
  $sql = "select * from table;"
  
  while($row=mysql_fetch_assoc($sql))
  {
  echo "&lt;tr&gt;&lt;td&gt;".$row[0]."&lt;/td&gt;&lt;td&gt;".$row[1]."&lt;/td&gt;&lt;td&gt;".$row[2]."&lt;/td&gt;&lt;td&gt;".$row[3]."       &lt;/td&gt;&lt;td&gt;".$row[4]."&lt;/td&gt;&lt;/tr&gt;";
  }
  ?&gt;
  
  &lt;/table&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>==I have not really tried anything yet for the edit/delete buttons.. i dont really know where to start</p>