Jump to content

edit delete butons/links in a table


ascribemeaning
 Share

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.

Edited by ascribemeaning
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...