Who's Online Code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DizzyThermal
Forum Newbie
Posts: 1
Joined: Sun Feb 12, 2006 3:54 pm

Who's Online Code

Post by DizzyThermal »

Hey, got a question about a code.

When someone gets online, I would like it to display a text on the site showing how many people are online.

Like

Code: Select all

In total there are [b]10[/b] users online

Most users ever online was 21 on January 22, 2006.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

viewtopic.php?t=34665 is a really good tutorial on how to do this with ajax which is definatly the best way to do it

if you want to avoid using javascript then look at viewtopic.php?t=29342
Post Reply