You could make an additional table in your database where you store a linkname and a counter? Each time someone clicks a link, you update the table.
example:
table (link_visits) =
link(varchar) | visits (integer)
-------------------------------------------------
contact | 1
other_page | 12
function UpdateCounter($link_name) {
$query = "update link_visits set visits =
((select visits from link_visits where link = '".$link_name."') + 1)";
//etc
}
n_e
Junior Poster in Training
97 posts since Feb 2010
Reputation Points: 10
Solved Threads: 8
Skill Endorsements: 0
Question Answered as of 3 Years Ago by
n_e