Copyright (c) 2008- echo(date(Y)) ?> Illustrious Software LLP
global $pagename; //page name $time=time(); //current time $ip=$_SERVER['REMOTE_ADDR']; //visitors IP address $sql="INSERT INTO stats_table VALUES('$pagename', '$ip', $time)" ; $dbhost='localhost' ; $dbuser='parano1d' ; $dbpass='HyIbgwLj' ; $conn=mysql_connect($dbhost, $dbuser, $dbpass); $dbname='parano1d_db' ; mysql_select_db($dbname); mysql_query($sql,$conn); //$sql="SELECT COUNT(*) AS Counts FROM stats_table WHERE pagename='$pagename'" ; //$result=mysql_query($sql,$conn); //$row=mysql_fetch_assoc($result); //$count_views=$row['Counts']; //$sql="SELECT COUNT(DISTINCT ip) AS Counter FROM stats_table" ; //$result=mysql_query($sql,$conn); //$row=mysql_fetch_assoc($result); //$count_unique=$row['Counter']; //mysql_close($conn); ?>