I need a script that will allow me to track the number of users on a site. I already have a stats program that webmasters can use, however I want to add a new feature that shows the total number of people currently on the site ( I want it to log in mysql, and keep them in the database for 2 hours) here is how I want it to work.
My current members area gives everyone a unique site ID, so I will integrate this script into my current site.
//script// ...code...?=unique_site_id and this will spit out the code for them to use, then you system will log everyone who pulls that code, it logs IP, and current page.
Then in another part of my site I will want a code I can place that will show the # of people tracked, using the java code method.