I have a function that allows my users to search my database, and i want to limit the mumber of queries a user can do in a given 24 hour period.
I can write a script that increments a field in my database everytime a user conducts a search, and i can stop them searching if this value is at a given limit.
But how do i go about resetting this field to zero every 24 hours?
any suggestions on this are gretaly appreciated guys 🙂