Re: counting hyperlink clicks in php

From: Date: Sat, 17 Feb 2007 19:53:00 +0000
Subject: Re: counting hyperlink clicks in php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-248983@lists.php.net to get a copy of this message
Denis L. Menezes wrote:
Dear friends. I have a site where I have news headers. I wish to count the clicks on the news headers so that I can see how many times each of the the news has been viewed. This way I can show the "most viewed" news. Can one of you please advise hwo this can be done? add to each news item like &clicked=1 and in the page where you display the news item, checked if clicked exists, if does write it to a file or a db (obviously with the news item id), if your using mysql, the heap table type is quite useful, you will however need to move the info to a more permanent table every x amount of clicks.
clive

« previous php.general (#248983) next »