Use AJAX to check for a new message
Posted
by
Luke
on Stack Overflow
See other posts from Stack Overflow
or by Luke
Published on 2011-01-02T23:47:52Z
Indexed on
2011/01/02
23:54 UTC
Read the original article
Hit count: 136
AJAX
Quite simply, I need to alert the end user when they have a new private message. From a combination of research and other opinion, I realise I need to use AJAX for this.
The mysql query would be
SELECT id FROM tbl_messages WHERE to_viewed = 1
So when someone sends a message, I want an alert to popup on the screen to inform the user without a page reload.
I have absolutely no idea what I am doing, but know what I want. Really need help with this, AJAX is definitely something I want to improve as it opens up greater possibilities!
Thanks
© Stack Overflow or respective owner