darkweave Posted April 27, 2010 Share Posted April 27, 2010 hi is there a way to view unread threads and posts by making a code that reads from a timestamp in the database? for instance i thought about making a code that read what ever has been posted from the last time the user logged on but then i realized i cant do that because everytime the individual logs on it updates their timestamp on the server. so would i have to make it read each individual thread and reply to get the time stamp? anyone have any ideas? Link to comment https://forums.phpfreaks.com/topic/199935-unread-messages/ Share on other sites More sharing options...
andrewgauger Posted April 27, 2010 Share Posted April 27, 2010 What does unread posts have to do with times logged in? You should track what posts users have read with a separate table that tracks users and posts. Make a query that joins the two tables and only returns results that are not in both tables. Link to comment https://forums.phpfreaks.com/topic/199935-unread-messages/#findComment-1049442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.