Added: Nov 12, 2003
Snippet uploaded by: Martyn Coupland
Written By: DA Master
Demo: Sorry, no demo
This simple link trackers works well with sites that have affiliate links.
mcHits Version 1.0
Created: 12th November 2003
Insert the sql code below into phpMyAdmin:
CREATE TABLE `mc_hits` (
`id` int(11) NOT NULL auto_increment,
`url` text NOT NULL,
`count` bigint(20) NOT NULL default '0',
KEY `id` (`id`)
/* Start User Editing */
$db = "localhost";
$db = "username";
$db = "password";
$db = "dataname";
/* End User Editing */
or die(Cannot Connect To Database: mysql_errno());
or die(Cannot Select: $db from $db);
$result = mysql_query("SELECT * from mc_hits WHERE url='$url'");
$id = $res["id"];
$count = $res["count"];
$url = $res["url"];
$update = "UPDATE mc_hits SET count='$count' WHERE id=$id";
$updatesql = mysql_query($update");
document.location.href="<?php echo $url; ?>"
<?php } ?>
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.