I'm trying to creat a whos online block that shows the members currently online by user name, and what page they are on! Everything I can find is in regards to number of users online etc etc.
I want to display something like this:
ONLINE NOW
dave Viewing index.php
peter Viewing forums
sam Viewing Stores
dave peter sam would obviously the user login name.
I understand that I have to have a database table that is updated everytime a user logs in and out with the user name. I also understand that the table needs to drop users after a specific time period incase the user does not log out but just leaves the page. I'm very new to php does anyone have any scripting I could use as a base to work with and or does anyone know where I can find a tutorial on this!