article hits

Light Poster
4May2009,10:01   #1
field's Avatar
to all the members, your help are very welcome. i am concerned on how to make list of articles where i can see live hits on the other column whenever an article within my site has been read..

like:

ARTICLES HITS
Article One 22
Article Two 17

thanks
Go4Expert Founder
4May2009,10:05   #2
shabbir's Avatar
Could not understand if your problem is for storing the counter or displaying it
Light Poster
4May2009,10:22   #3
field's Avatar
displaying the number of page views (hits)

let's say for a template view it will show how many times that template was viewed. but this i wanna show in my site how many times the article was viewed. i don't know if i have explained it right
Go4Expert Founder
4May2009,10:28   #4
shabbir's Avatar
See you need to do couple of things.

When someone views the Article you should increase the counter in the database by 1
Then when someone views the counter or when you want to display it just display the number from the database.
Light Poster
4May2009,10:35   #5
field's Avatar
wow.. i think i will really be needing to do a couple of things here... does it mean whenever a page was viewed i will increase the counter on the database manually? sorry.. new with it
Go4Expert Founder
4May2009,10:46   #6
shabbir's Avatar
Quote:
Originally Posted by field View Post
wow.. i think i will really be needing to do a couple of things here... does it mean whenever a page was viewed i will increase the counter on the database manually? sorry.. new with it
Then who else would do it for you
Light Poster
4May2009,10:48   #7
field's Avatar
lol.. i think i will just forget about that.. thanks anyway shabbir