Login   Register  
PHP Classes
elePHPant
Icontem

File: example_track.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2007-07-17 12:04
Size: 485 bytes
 

Contents

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);



?>


?>