Determining unread items in a forum

后端 未结 7 1662
执念已碎
执念已碎 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:25

    There's no easy way to do this. There are plenty of ways to do it, but each grows exponentially larger as the user visits the site. The best you can do and still keep performance is to have a timestamp and mark any forums that have been updated since the last visit as 'unread'.

提交回复
热议问题