steviez Posted February 18, 2010 Share Posted February 18, 2010 Hi, I am making a simple file hosting site and want to check if users premium subscriptions have ended or not. In the database i have premium_start ( time() ) and premium_end ( time() ) that represents the start and end date. Would the following code work to check if an account has expired? <?php // check premium expire if((time() - $member['premium_end']) >= time()) { // do actions here } ?> thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.