Store the limit and a last changed date in a table. Before updating a value, see when it was changed last, to determine if it should be reset.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Yes. Make a php script to reset all values, and execute it through your crontab.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875