Jump to content

Page view count


son.of.the.morning

Recommended Posts

Alright guys i have an idea on what am going to do here, although i am unsure that it's the best way to go about it.

 

I am creating a blog and i need to count how many views an article gets in order to display the top 10 most viewed articles. Here is my plan...

 

1. Add an additional field to my blog posts table called viewed

2. On the view article page have an update method that adds one to the current number on the the coloum viewed

3. When displaying the 10 most viewed articles query it by the heightest number and limet to 5

Link to comment
https://forums.phpfreaks.com/topic/252806-page-view-count/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.