in the do loop;
echo "<a href='delete.php?id=" . $id . "'>delete</a>";
of
echo "<form action='delete.php' method='post'><input type='submit' value='delete'><input type='hidden' value='" . $id . "'></form>";
this will print a "delete" link or button next to each row
and delete.php is obvious
<?php
//connect to database
//get id in querystring
//delete row using id
//delete file if thereis one
//redirect to the weblog list again
?>