Jump to content


This topic is now archived and is closed to further replies.


I'm just not getting it.

Recommended Posts

Okay, It's just not clicking in my mind. Here's the picture: A nice and simple comment block on your website, and you need to have a "Delete" button only visible to the admin (me). I'm just not getting how I would make the delete button on each comment link to the specific comment in the MySQL database.


What I mean is how would I get it so when someone posted a comment, the delete button would delete that specific comment? I don't get how to update each link when someone posts a comment.


If this makes sense to anyone, please help me!

Share this post

Link to post
Share on other sites

use the comment's id.

<a href="delete.php?id=1">


in this example the 1 was retrieved with the data and printed.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.