Check premium expire


Posted on 16th Feb 2014 07:03 pm by admin

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.

Did you know?Explore Trending and Topic pages for more stories like this.
Would the following code work to check if an account has expired?
Code: <?php
// check premium expire
if((time() - $member['premium_end']) >= time())
{
// do actions here
}
?>

thanks
No comments posted yet

Your Answer:

Login to answer
165 Like 44 Dislike
Previous forums Next forums
Other forums

Help adding strtolower( to my in_array
strtolower i need to add it to this to work, iuno how.

Code: $moderators = array('Admin', 'ba

help removing unwanted graphic
How do I remove the small elongated rectangular shape between the "Latest post" and "

Multi language - seo links
Im trying to figure out the best method to have a multi language website that will function with seo

UDP Multicast question
Hey,

Im not really in the know when it comes to network related programming and activitie

php - xml what is the best way to do this.
IN essence I want to have a script calling the info from the database.. I have no problem thus far,

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

Could Someone Please Debug This?
I was wondering if someone could debug this script for me. I realize it's not the tidest script (and

code help - pagination
Hi all, I have this code, basically a user logs into my site and they get this page.

The pro

CRM?
I think that's what they're called. Customer Management System? Anyway. Is there any good free ones

VAT
how should I deal with VAT?

if I have a product that costs £5.00 and VAT @ 17.5% (£0.87

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash