I would add a variable to the hyperlink to make sure only the clicks from that hyperlink are counted, and do the actual counting on the target page:
The link:
<a href="http://www.yourdomain.com/yourpage.html?referrer=source1">
The code for the target page:
<?
if ($referrer == "source1"):
$query = "UPDATE yourtable SET clicks = clicks+1";
$result = mysql_query($query);
endif;
?>
... or similiar. This will count multiple clicks from the same IP, though...
HTH
Toby