Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Displaying most viewed posts
Goto page Previous  1, 2
 
Reply to topic    Forum Index » Suggestions View previous topic
View next topic
Displaying most viewed posts
Author Message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2683
Location: Germany

Post Reply with quote
I think you don't need a new entry in the database for each view.

You only need one entry per article and then you can update the view count.

So my solution would look something like this:
1. Add a new table.
2. Count the views for each article and update the database accordingly.
3. Save the current time in a file.
4. Check the current time against the saved time in that file. If the saved time is older than 24 hours or whatever then clean the new table.

It's quite easy to do. Feel free to ask if you encounter any problems.
Mon Oct 22, 2007 4:04 pm View user's profile Send private message
Guest








Please login to hide the ads.

Display posts from previous:    
Reply to topic    Forum Index » Suggestions All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.