Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Automated content load?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Weasel" data-source="post: 177317" data-attributes="member: 9520"><p>I'd say this is rather anoying for Person B, however this can be done with PHP. You would need to add a column 'is_read' to the database of the messages, and with AJAX you can reload the page every x seconds like the DevBest shoutbox does to check it.</p><p> </p><p>$query = mysql_num_rows("SELECT * FROM messages WHERE is_read='0' AND reciever_user_id='".$userid."' ");</p><p>if ($query >= 0)</p><p>{</p><p>header('Location: messages.php?message_id=idhere');</p><p>}</p><p> </p><p>This is just a little code to do it, I'm a bit tired now, if it doesn't work I'll check it out tomorrow for you.</p></blockquote><p></p>
[QUOTE="Weasel, post: 177317, member: 9520"] I'd say this is rather anoying for Person B, however this can be done with PHP. You would need to add a column 'is_read' to the database of the messages, and with AJAX you can reload the page every x seconds like the DevBest shoutbox does to check it. $query = mysql_num_rows("SELECT * FROM messages WHERE is_read='0' AND reciever_user_id='".$userid."' "); if ($query >= 0) { header('Location: messages.php?message_id=idhere'); } This is just a little code to do it, I'm a bit tired now, if it doesn't work I'll check it out tomorrow for you. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Automated content load?
Top