I have table trackVisit and within 6 fields: ID, firstVisit, lastVisit, numVisits, totalDuration, totalClicks
The whole code I have to change to my table.
Code was first for sqlite, but I would like to track with tables in db (updateVisit and getVisit is still with sqlite)
Please advise me what to change :
PHP Code:
<?
// Connect to MySQL-Server
$db="...";
$link=mysql_connect ("localhost", "...", "...");
if (!$link)
{
die ("Couldn't connect to MySQL:". mysql_error());
}
//Open $db
mysql_select_db ("$db")
or die ("Couldn't open $db: ". mysql_error());
$GLOBALS['slength']= 300;
$GLOBALS['visitID']= $_COOKIE['cookname'];
$GLOBALS['userStats'];
if (empty($visitID) )
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --