here's my link :
<a href="php/tracker.php?link=elite" ...
here's the code (tracker.php):
<?
//Connect DB
$db = mysql_connect('localhost', 'xxxxxx', 'xxxxxx');
mysql_select_db('cabanon',$db);
//Update Stats
$sql = "UPDATE Stats SET Click=Click+1 WHERE StatsName = '".$link."'";
$result = mysql_query($sql,$db) or die(mysql_error());
//Redirection
header ("Location: '".$link."'.php4");
//Disconnect DB
mysql_close();
?>
I change the extension tracker.php4 to tracker.php and now it goes like this :
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/www/cabanons.com/v2/php/tracker.php on line 3
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/www/cabanons.com/v2/php/tracker.php on line 4
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/www/cabanons.com/v2/php/tracker.php on line 8
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
?????