You want to keep that information stored in the DB along with a date. Just check the most recent row in the DB for the user, and then if the dates are different, insert a new row (e.g. start from 0). Otherwise update the existing row for the current day.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.