Scripts.com - Get the best scripts NOW!
HotScripts.com - Over 10 web rings.
more links...
Ron Paul Revolution
user name  
password    
Index    News    Samples    Downloads    E-Mail me    Forum    Sign Up
 

USERS.PHP

Include this script in the PHP pages of your web site in order to display the number of people that are viewing them. Before using this script remember to create a MySQL database for it (if you don't already have one), and to assign that name to $DataBaseName. Actually, remember to assign a value to all the initialization variables at the beginning of the script.



<? include("USERS.PHP"); ?> will keep count of the users accessing that page.

The users() function will display all the users tracked by the script. users_on_this_page() will only display the ones on the current page.