简体   繁体   English

需要为使用 PHP/MySQL 的常见问题解答/知识库添加“此答案有帮助”

[英]Need to add “This answer helped” for an FAQ/KB using PHP/MySQL

I've found ways to rank existing values but it's been awhile and I'm not sure the best way to add a "This answered my question" function to my KB/FAQ.我找到了对现有值进行排名的方法,但已经有一段时间了,我不确定在我的 KB/FAQ 中添加“这回答了我的问题”function 的最佳方法。 I guess my biggest problem is separating multiple queries into individual ones so I can plug this feature in. I'm assuming I'd just have to add a insert into the database that will +1 each time someone clicks the button, but it's been awhile and I haven't done this before.我想我最大的问题是将多个查询分成单独的查询,这样我就可以插入这个功能。我假设我只需要在数据库中添加一个插入,每次有人点击按钮时都会 +1,但它一直一段时间,我以前没有这样做过。

As a further clarification, Im using this within a Facebook app I'm making so need to rate individual answers that are generated by the search of my knowledge base to produce better answers.作为进一步的澄清,我在我正在制作的 Facebook 应用程序中使用它,因此需要对通过搜索我的知识库生成的单个答案进行评分,以产生更好的答案。 It's all dynamic, so no static pages.这都是动态的,所以没有 static 页面。

Haven't found an answer that could help thus far.到目前为止还没有找到可以提供帮助的答案。

Consider adding something like the Google Plus One button to your site.考虑在您的网站上添加类似Google Plus One按钮的内容。 It's very easy to implement and you don't have to worry about any backend stuff as a result.它很容易实现,因此您不必担心任何后端问题。

Or search on google.或者在谷歌上搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM