you can do a manual update to your table something similiar to this
<?php require_once('Connections/conectionName.php'); ?>
<?php
if(isset($_GET['id'])) {
$idg = $_GET['id'];
mysql_select_db($database_DBNAME, $CONECTIONNAME);
$sql = "UPDATE TableName SET clicks=clicks+1 WHERE (id = '$idg')";
echo mysql_error();
}
?>
TableName: the table where the it will count the clicks for
clicks: the counter field where it will store the clics
$_GET['id']: the passed ID
id= the starting id of the table field
you might have to do some changes but its sort of that good luck mate :)