What would be the best way to check unread messages from mysql table…
I have two tables one for users and the other for messages… In the users table I am saving the last-login-date column & in messages table the date-added column, but what would be the best way to check whether the user has accessed the messages or not….
I am thinking of adding another update query to the select query for messages and add another column(read) to the messages table and set read to ‘yes’ or ‘no’… any other suggestions?Thanks
What would be the best way to check unread messages from mysql table… I
Share
Yes, a read column would be the best, logging in (time) does not mean the message was read. So an indicator to show read messages is the best way to go.
Edit:
You might want to expand the “status” idea to include thing such as read time, notifications, forwarded and replied.