justAnoob Posted May 25, 2009 Share Posted May 25, 2009 I'm working on a messaging system. What I'm looking to do is when I user recieves a message that is unread,, it marks it as new,, then after they have read the message, have it marked as nothing, cause it was read already. I have a column in my database called status. And users can already send messages. What is the next step so I can implement the status part? Quote Link to comment https://forums.phpfreaks.com/topic/159606-solved-messaging-system/ Share on other sites More sharing options...
Daniel0 Posted May 25, 2009 Share Posted May 25, 2009 When the user views it, set status as unread (or 0 or 1 or however you denote it in your system). Quote Link to comment https://forums.phpfreaks.com/topic/159606-solved-messaging-system/#findComment-841820 Share on other sites More sharing options...
justAnoob Posted May 25, 2009 Author Share Posted May 25, 2009 How about when a user sends a new message,, have the mysql query set the status as new,, and then when a user clicks on a link to view the message, do a update to change the status? Quote Link to comment https://forums.phpfreaks.com/topic/159606-solved-messaging-system/#findComment-841828 Share on other sites More sharing options...
Daniel0 Posted May 25, 2009 Share Posted May 25, 2009 Yeah. Quote Link to comment https://forums.phpfreaks.com/topic/159606-solved-messaging-system/#findComment-841829 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.