How does a user navigate to the link? It's the href of the link, yes?
Using that href, can store it as $link, through php code, not just waiting for it to show up.... I didn't mean it would automatically be there.
Somehow, you have the url available. Use that url to add the delete link....
http://..../delete.php?url=urlhere
And that should delete it.
There is absolutely no need for an ID as it just ads one step and you'd STILL need the url in the end. Instead of messing with IDs, just use the url itself, which you MUST!!! have available to link the person.