You are kind of all over the place in your code...some comments would be nice, I don't really have the time to walk through all that code, it seems there may be a more efficient way that this could be done. I am one to have to see things visually too. It would help if you could comment your code or set up a testing page with the same functionality.
From what I can gather, it seems you would just do the delete the same way you would do the edit, it also seems as if you are asking for an SQL delete statement. It looks like you have some delete functionality in there but no actual query to perform the delete.
Here is some help for thatAs far as the design goes...the way I would do it is this:
Have a blank form that the user fills out
on submit, it will update the database and then display the information as text
under the text it would have two link:
Delete - which will run the delete query
Edit - which would take you to a page just like the form, only the information submitted before will be in there, then when they hit submit again, it would update...
Need more information