Instead of asking 'how to use PHP/MySQL to let users affect webpages' I'll ask this, because I learn better from projects and examples.

So how would I incorporate a VERY basic comment feature using PHP and MySQL?

解决方案

It's a hard question to answer without more information. There are a number of things you should consider when looking at implementing commenting on an existing website.

How will you address the issue of spam? It doesn't matter how remote your website is, spammers WILL find it and they'll filled it up in no time. You may want to look into something like reCAPTCHA (http://recaptcha.net/).

The structure of the website may also influence how you implement your comments. Are the comments for the overall site, a particular product or page, or even another comment? You'll need to know the relationship between the content and the comment so you can properly define the relationship in the database. To put it another way, you know you want an email address, the comment, and whether it is approved or not, but now we need a way to identify what, if anything, the comment is linked to.

If your site is already established and built on a PHP framework (CakePHP for instance) you'll need to address how to integrate your code properly with what is already in place.

Lastly, there are a number of resources and tutorials on the web for PHP. If you do a quick google search for something along the lines of "PHP blog tutorial" I'm sure you'll find hundreds and the majority will show you step by step how to implement comments.

php mysql网页评论,PHP / MySQL:如何在您的网站中创建评论部分相关推荐

  1. razor html帮助器,在 ASP.NET 网页(Razor)网站中创建和使用帮助器 | Microsoft Docs

    在 ASP.NET 网页(Razor)网站中创建和使用 Helper 02/17/2014 本文内容 本文介绍如何在 ASP.NET 网页(Razor)网站中创建帮助程序. 帮助器是一种可重用的组件, ...

  2. 电商网站中用户评论模块剖析

    用户评论是电商网站交互设计中的重要模块之一,用户体验的好坏将直接影响到产品的销售数量,乃至整站的访问量.网上购物,我们只能看到一张张商品图片和描述,对于产品的优劣无法准确判断,因此,已购买者的评论对于 ...

  3. 纯ajax html网页,JavaScript – 页面加载纯HTML AJAX网站中的替代品

    Is my goal impossible or there's a mature approach out there? 最近有很多JavaScript框架围绕这个概念("单页应用程序&q ...

  4. MySQL 全文搜索支持, mysql 5.6.4支持Innodb的全文检索和类memcache的nosql支持

    背景:搞个个人博客的全文搜索得用like啥的,现在mysql版本号已经大于5.6.4了也就支持了innodb的全文搜索了,刚查了下目前版本号都到MySQL Community Server 5.6.1 ...

  5. mysql chown_请教,mysql编译时出错,chown: “mysql”: 无效的用 户

    你的位置: 问答吧 -> 服务器 -> 问题详情 请教,mysql编译时出错,chown: "mysql": 无效的用 户 chown: "mysql&quo ...

  6. java+jsp+网页制作,java+jsp+mysql网页制作总结(2)

    错误:url通过get传递时汉字出错 解决:url通过get传递时汉字会乱码, 1.String name1=request.getParameter("name"); Strin ...

  7. 用Mysql网页式管理工具安全地访问数据库的方法

    2019独角兽企业重金招聘Python工程师标准>>> 用Mysql网页式管理工具安全地访问数据库的方法 在使用通达OA系统时很多用户需要借助Mysql网页式管理工具进入后台数据库去 ...

  8. 万丈高楼平地起 - 读《PHP5+MySQL网页系统开发设计》

    春节手头有几本书,其中一本就是<PHP5+MySQL网页系统开发设计>,博文视点出版的,我对博文的书一向印象不错,在我印象中,这本大概是博文出版的第一本PHP书籍,我希望博文后面还会有第二 ...

  9. python爬取玉米、小麦、水稻信息数据到本地为网页形式和mysql数据库中

    1.创建Scrapy项目 scrapy startproject ExGrain 2.进入项目目录,使用命令genspider创建Spider scrapy genspider exgrain ex- ...

最新文章

  1. PingCode与Jira 敏捷开发管理能力的对比
  2. RHCE认证培训+考试七天实录(二)
  3. Xbox One:微软商店中都是Xbox One的主题
  4. axis2 java.net.url_axis,axis2调用.net的webservice
  5. JDBC原理之层次结构
  6. hbase1.1.1 连接集群_HBase-1.0.1学习笔记(一)集群搭建
  7. python列表购物
  8. 面向对象:三大特性与五大原则
  9. 个人开发—进度记录(一)
  10. Python + Selenium 自动发布文章(一):开源中国
  11. Qt实现带验证码的输入框
  12. Python实现pdf转图片
  13. 用python编译linux内核,戴子轩/RK3399上编译linux-kernel
  14. MFC工具箱没有控件解决方法
  15. CMP SUB 区别
  16. 如何把ISO镜像转换成Docker镜像
  17. 比较不错的UI模板——有点像OA工作流
  18. 量子侦探社之“寻猫记”
  19. 使用傲梅分区助手绿色版给C盘扩容
  20. MongoDB与MySQL的插入、查询性能测试

热门文章

  1. Java的序列化和反序列化
  2. windows下python环境搭建_Win7怎么搭建Python环境 win7系统搭建Python环境的方法
  3. panel垂直滚动条占用宽度_南开区垂直车库门车库门安装价格
  4. this.$modal.confirm 自定义按钮关闭_【勤哲资料】7.6 自定义打印
  5. android prebuild第三方so库,Android NDK编译本地文件以及引用第三方so文件
  6. [Unity脚本运行时更新]C#7.3新特性
  7. 编辑中的word变成只读_文档设定密级,word中是这样加密,看一篇就精通了
  8. 即时低码数据库Web应用-ASP.NET Core 3.1单页应用(SPA)
  9. vue用html做报表,Vue配置生成无限分割的表格,可快速实现任意复杂报表
  10. dbeaver导出excel文件_vue将数据导出为excel文件就是如此简单