如何编辑评论 [英] how to edit the comments

查看:139
本文介绍了如何编辑评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中创建了组。在该组中,用户可以发布他们的摘要。我网站的其他用户可以对帖子发表评论。现在我的问题是,我想为此评论提供删除/编辑选项。我将所有评论存储在数据库中。我已经实现了删除评论的功能。如何实现编辑注释的功能。当我点击编辑按钮发表评论进行编辑。保存评论时,评论应该在数据库中更新。





请帮助我。







提前致谢

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

推荐答案

阅读本文

它会帮助你使用更新





http://www.w3schools.com/sql/sql_update.asp [ ^ ]


这篇关于如何编辑评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆