 |
| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2683 Location: Germany |
|
|
|
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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
|
|
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
|
|
 |
 |
 |
|