Hey guys, I was looking for a good answer some hours now but can’t find what I’m looking for!
If I have a dynamic Website (maybe news) I got the following links
../domain.com/?newsid=1
../domain.com/?newsid=2
../domain.com/?newsid=3 etc..
now I would have a individual counter for each of this page..
So I would check every single visitor and if someone is reading the "news 1" 20 times it also should count only 1 time. => Maybe with IP or Cookie.
It should be a function that I can include into the php code like <? pageviews(ID)?>
I never thougth anything like this. Hope someone can help me and give me some tips how I can code a script like this (I’m php newbie btw)
You should consider using a counter field in your news table such that when someone opens ?newsid=1 for example, you do this: