Page 1 of 1

Live database requests

Posted: Thu Aug 02, 2007 11:30 am
by Chalks
I have a website that I would like to display how many people are online and who they are. That's easy to do. It displays in a <textarea> field. However, I'd like it to update itself anytime someone else logs on, without refreshing the entire page.

Is that possible using php, or does that need to be done client-side? Regardless of which one it is, please point me towards functions that I should be using.



Incidently, this is very similar to a chat room just... without the ability to chat. :)

Posted: Thu Aug 02, 2007 11:34 am
by s.dot
You will need to make an ajax function or two. One to poll the server at regular intervals, and one to display the results, if there are any.

Posted: Thu Aug 02, 2007 12:03 pm
by John Cartwright