Hi Kevin,
Thanks for this useful hack.
Do you think it is possible to further customise the message shown?
Re: 1 guest/member
instead of showing the message as 1 guests online.
notice the pural for guest?
show msg as "There is 1 guest online."
same thing for 0 members
Re: 0 guest/member
So if's it O members online and 2 guests online.
Instead of showing msg as "0 members and 2 guests online"
Show message as: "2 guests online" and don't show the o members part.
same thing for 0 guest.
And don't show any message if there are o member and o guest online.
Re: warning msg
I have a few layers of includes for my site, when i use the script
it shows
Warning: MySQL Connection Failed: Access denied for user: 'XXXXXXX@localhost' (Using password: NO) in /home/XXXXX/public_html/online.php on line 46
It works after i added the two following lines just above $db=mysql_connect($servername,$dbusername,$dbpassw ord);
$dbusername="myusername";
$dbpassword="mypassword";
|