shortysbest Posted July 11, 2010 Share Posted July 11, 2010 Im building a social networking site and i want to have a comment notification that alerts the user when they have a new comment. I'm wondering how i should go about doing this, such as how my database should look. Quote Link to comment Share on other sites More sharing options...
freelance84 Posted July 11, 2010 Share Posted July 11, 2010 Alert how, by email? one way would be A user types message to another user, when they click post it posts the message but also sends an email out to the recipient too using mail(); Quote Link to comment Share on other sites More sharing options...
shortysbest Posted July 11, 2010 Author Share Posted July 11, 2010 the notification on the site itself, like on facebook at the top bar. Quote Link to comment Share on other sites More sharing options...
freelance84 Posted July 11, 2010 Share Posted July 11, 2010 In the members table have a "new message" field. This could be a 1 or a 0. If 1 then there is a new message. When the script runs it get the "new message" content and displays your notification or not Quote Link to comment 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.