I am just getting back into PHP after about 7 years away so am very rusty.

I am wanting to add a feature to my site whereby it tracks the users logins daily and then prints their logins visually on the website. I want it to record consecutive logins and when the user misses a day, return the value to zero.

Any help would be much appreciated! 

Cheers!