$stats_host = "localhost";$stats_user = "dbsaint";$stats_password = "saint03";$stats_database = "saintlogin";$stats_table = "statistics";mysql_connect("$stats_host","$stats_user","$stats_password") or die("Can't connect to the SQL-server");mysql_select_db("$stats_database");$location=getenv("REQUEST_URI");$remote_host=getenv("REMOTE_HOST");$remote_ip=getenv("REMOTE_ADDR");$query = "SELECT * FROM $stats_table WHERE VISITOR = '$remote_host' && URL_STR = '$location'";$result = MYSQL_QUERY($query);$number = MYSQL_NUMROWS($result);
if($number == 0) {$query2 = "INSERT INTO $stats_table VALUES('$location', '$remote_host', '$remote_ip', '1')";$result2 = MYSQL_QUERY($query2);
}else {$z = 0;$old_times = mysql_result($result,$z,"TIMES");$new_times = $old_times+1;$query2 = "UPDATE $stats_table SET TIMES = '$new_times' WHERE VISITOR = '$remote_host' && URL_STR = '$location'";$result2 = MYSQL_QUERY($query2);
}
?>
Here are a few steps to guide you into the SAINTlogin universe:
It includes:
And there's more:
This service package will never expire, unless you decide to grant access to your on-line services to more than 50 users.
In this case, if you want to go on using SAINTlogin, you need to subscribe one of the 4 premium service packages for which an annual fee is charged.
So what are you waiting for?
Contact us to subscribe your FREE package!