Hi,
I currently have a page that stores profiles. One piece it stores is a counter called bpcounter that increments by one every time a page is viewed. I then echo "PROFILE VIEWS = $bpcounter".
This works fine, but now I would like to add a feature of views today. I thought of building a seperate table called todays_views and storing profileID, todaysViewsCounter and viewDate for that profile. The problem is, I dont want to waste alot of resources on storing information beyond today. In other words, how would I get it to just store values for that day and then refresh or overwrite to start the next day.
Also I currently use datetime. Would this job be better suited for a date field since time wont be a factor?
Thanks alot for any help or advice.