Determining unread items in a forum

后端 未结 7 1183
执念已碎
执念已碎 2020-12-30 17:07

Using PHP and MySQL, I have a forum system I\'m trying to build. What I want to know is, how can I set it so that when a user reads a forum entry, it shows as read JUST for

相关标签:
7条回答
  • 2020-12-30 17:35

    May be storing in another table UserID,threadID, LastReadDateTime when the user read that thread.

    if (LastPostDateTime > LastReadDateTime) you got an unread post.
    

    Sadly you have a great overhead, on every read you'll have a write.

    0 讨论(0)
提交回复
热议问题