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 Link to comment https://forums.phpfreaks.com/topic/192569-check-premium-expire/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.