ascribemeaning Posted May 27, 2011 Share Posted May 27, 2011 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 More sharing options...
birbal Posted May 27, 2011 Share Posted May 27, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.