Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have create group in my project. In that group users can post their abstracts. Other users of my website can comment about posts. Now my problem is, i want to give delete/edit option for this comment. Am storing all the comments in database. I have implemented functionality for deleting the comments. How to implement functionality for editing the comments. when i click on edit button make the comment for editing. when save the comment,comment should be updated in database.


Please help me.



Thanks in advance
Posted
Comments
hansoctantan 7-Oct-13 5:19am    
Adding and Updating data in database using java is almost the same, just use UPDATE sql script...

1 solution

Read this
It will help you to use update


http://www.w3schools.com/sql/sql_update.asp[^]
 
Share this answer
 
Comments
User-10031173 7-Oct-13 5:56am    
sorry... my requirement is just like in facebook we can delete/edit the comments. In facebook when we mouse over on the comment it shows edit/ delete drop down will appear. when we click on edit button the comment become in edit view. same functionality i want include in my project.
User-10031173 7-Oct-13 5:58am    
when edit the existed comment then press on enter key the edited comment need to be updated in database and in application page

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900