2
Contributors
3
Replies
32
Views
2 Years
Discussion Span
Last Post by myfit
0

What part do you not understand specifically? To do an edit type function all you would have to do is an UPDATE query similar to the insert query you did to add the comments to the database. You can read up on it here:Click Here For the deleteing you can do something similar yet and use a DELETE statement in SQL. You just have to grab the comment based on some unique variable, usually a Comment ID that you have auto incrimenting. You can do something like fetching what all the comments are, which you have done and then to do an edit they would click the edit button and you could make some text field appear VIA JS, with that box you could use AJAX to get the current comment above and allow them to edit it and submit it back to the same page or where ever your UPDATE function is. There is a ton of ways to do it. Just find one that sounds easy enough for you to do.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.