Topic: linksplus module: suggestions on the best way to record hits?

hi all.  i'm redoing my web links module so that it will keep track of the day a link was submitted and how many times a user has clicked on a link.  on the links page i list the 10 newest links and the ten most popular links.

the new module looks very cool and i think people are going to like it.  what do you think is the best method to keep track of hits?  i have an int column called hits.  every time a user clicks on a link to example.com, i want that row's 'hits' cell increased by 1.  my first thought was to make it like a form and use post to pass the information, but this seems kind of clumsy.  so i thought why not ask the community before i finish that part.

thanks for any tips.

Re: linksplus module: suggestions on the best way to record hits?

how about designing a graph like punres stats. it displays in a graph ?


Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: linksplus module: suggestions on the best way to record hits?

Just URL encode the desired URL ( urlencode($url) ) and pass it via GET to a script that increments the hits row and then redirects the user to the desired URL ( urldecode($_GET['url']) ).

Looking for a certain modification for your forum? Please take a look here before posting.

Re: linksplus module: suggestions on the best way to record hits?

yeah it seems get is the way to go.  thanks for the tips guys.

i've tested the new mod out on two sites and it seems to work.

:-)