hello mick
i think this is the way to do it.
you run the query up ($query = "select id,fld_name from $tblName") on a mysql connection as $result = mysql_query($result).
while($row=mysql_fetch_row($result))
{
$dispStr .= "<a href=".xxx?fldId=$row[0]."</a>"
}
once you get that query string passed (id) you can pick that up after the post or get variables and then update your hit count.
"update $tblName set hits=hits+1 where id=".$fldId"
i hope i have got that right.maybe that helps you.
sorry for the loose ends.