PHP - SHOW USERS ONLINE
Possibly the most sought after PHP script - and here it is!
For this tutorial you will need a MySQL database, as the stats will be hosted
on your own server. Also, this tutorial was written assuming you have phpMyAdmin
(Download it!).
In phpMyAdmin, click on your database then click on SQL at the top.
Type this in the box and click 'Go':
Now just copy this code where you want the stats to appear:
That's it!