I’m trying to create some kind of countdown. I’m creating this community, and I want to create some kind of VIP, which has to last for 30 days.
So, when a user have bought this VIP, I will be inserting the current date(‘d’); to the database.
Then I have to -1 every day. How would you do this? I’ve tried with some mktime(); but that definitely won’t work out for me.
I’ve tried this link: http://www.brighthub.com/internet/web-development/articles/9471.aspx, without any results.
Thanks in forward 🙂
Store the end time in the database, and check to see if
now < end time. Avoid having flags that you have to update on a schedule.