SunDish214 Posted October 20, 2005 Share Posted October 20, 2005 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! Quote Link to comment https://forums.phpfreaks.com/topic/2708-im-just-not-getting-it/ Share on other sites More sharing options...
effigy Posted October 20, 2005 Share Posted October 20, 2005 use the comment's id. <a href="delete.php?id=1"> in this example the 1 was retrieved with the data and printed. Quote Link to comment https://forums.phpfreaks.com/topic/2708-im-just-not-getting-it/#findComment-9029 Share on other sites More sharing options...
SunDish214 Posted October 20, 2005 Author Share Posted October 20, 2005 Oh wow, thanks I get it now. Simple mistakes I tell you. Anyway, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/2708-im-just-not-getting-it/#findComment-9030 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.