Posted 12 March 2006 - 06:08 PM
what im trying to do is output some data from a mysql table into a table on the bowser. However the tricky part is that i want each row that is outputted to have a link beside it which when clicked will delete that row from the table.
Ive got the basic table outputting at the min and just need to add the delete link.
Oh and the table is being outputted in a loop.
Help would be massively appreciate!!!!!
Posted 12 March 2006 - 06:15 PM
<a href="delete_entry.php?id=<?=$id?>">Delete This Entry</a>
<?php $id = $_GET['id']; $query = mysql_query(DELETE * FROM your_table WHERE id_field = $id); ?>
Might not be exactly right, but it will nudge you along the right path.
Posted 12 March 2006 - 06:29 PM
Thanx a lot mate!
Posted 13 March 2006 - 03:13 PM
Can anyone help???
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users