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.

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

Working with Global Variables
hi, I'm not really sure why the following code is returning a "Call to a member function getBan

strtotime issue
Hey all,

I'm playing around with some code, and basically the idea is:

Person changes

BI in Upstream Production operations
Appreciate if you can assist in the following areas:
1) Examples of life before and after BI i

help with image text
Hi ...

see i need the text of the name and number to start in the center and always be in the

modifying a property of an object from a different class
I have 2 classes:
- Math
- Distance

in my math class, I have this line:
$distance =

Change Web page language
i doing this thing first time but i dont find any suitable solution for it. On the demand of user. I

Request for tunning the below query
Hi,

Can any one help me on the below query while improving the performance,

Converting from one format to another
"I have got a date in DD/MM/YYYY but I need it in MM-DD-YYYY. Help!"

INSERT for date range
Hi all

I have the following table

Code: [Select] `date` date
`day` int(2)
`

Count of reciepients in php mailer
How can i sent a mail to large no of reciepients say 10,00,00 Using PHP MAILER

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