File: example_track.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas  >  gStats  >  example_track.php  >  Download  
File: example_track.php
Role: Example script
Content type: text/plain
Description: Example of tracking
Class: gStats
Keep track of site visits and link clicks
Author: By
Last change:
Date: 13 years ago
Size: 485 bytes


Class file image Download
** 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);



For more information send a message to info at phpclasses dot org.