<?
/*
** gStats.
** What this example do is to show how to gather information,
** sended by javascript.
*/
include("gStats.php"); #including the class
#Opening the Database
#set $host, $user, $pass, $db for it can works.
$mysql = mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($db,$mysql) or die(mysql_error($mysql));
#Starting the tracking, passing as argument a valid MySQL connection
$stats = new gStats($mysql);
?>
?>
|