Jump to content

edit delete butons/links in a table


ascribemeaning

Recommended Posts

Hi.I am displaying an html table from a database table using php. I would like to add an edit and button to each data row.This is the code so far:-echo "<center><table border='1'><tr><th>Date</th><th>Event</th><th>Edit</th><th>Delete</th></tr>";while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['date'] . "</td>"; echo "<td>" . $row['event'] . "</td>"; echo "<td>"Edit Button/link needed here??"</td>" ; echo "<td>"Edit Button/link needed here??"</td>" ; echo "</tr>"; }echo "</table></center>";mysql_close($con);If someone could help me with the next step it will be appreciated.

Link to comment
Share on other sites

Are you going to redirect the user to another edit/delete page or you want to edit it dynamicaly on that page?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...