Jump to content


Photo

I'm just not getting it.


  • Please log in to reply
2 replies to this topic

#1 SunDish214

SunDish214
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationMoose Jaw, SK Canada.

Posted 20 October 2005 - 11:02 PM

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!
Stuff happens. Don't be discouraged.

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 20 October 2005 - 11:04 PM

use the comment's id.

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


in this example the 1 was retrieved with the data and printed.
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 SunDish214

SunDish214
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationMoose Jaw, SK Canada.

Posted 20 October 2005 - 11:31 PM

Oh wow, thanks I get it now. Simple mistakes I tell you. Anyway, thanks.
Stuff happens. Don't be discouraged.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users