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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php