如何使用 MySQL 追踪别人喜欢的文章?
It seems simple enough to just keep track of the total number of likes. The part I don t understand, is how to 1. keep users from only voting on something once and 2. allow users to click on their profile to see the stories they have liked.
您是否在表格中有一个专栏, 包含您刚刚添加的逗号分隔用户名中的故事信息? 您可以跟踪谁喜欢一个故事, 但数据会变得巨大, 特别是对于有十万用户以上的网站。 您将如何允许用户查看他们喜欢的所有故事?
谢谢