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

max() problem
I have a while loop to get image names.
Code: $imagequery = mysql_query("SELECT * FROM ad_i

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

how to make database item unique
Hey guys,

is it possible to do this:

I have the database item $title being pulled for

Seperate team from score
I am writing a site that does a NFL Pick 'em type application and I have a feed that gives me the sc

Date Format
Hi there,

I have a date format like this right now:
Sat, 17 Oct 2009 17:04:00

I ne

php include email form with attachment
I have had no luck with finding a email form all over the Internet for various reasons. Some insecur

calculator
I can't figure out why this code doesn't work. No error messages. Page loads.

Code: <

natcasesort works on one server but not on another
Hi

I have a problem that I was hoping that someone can help me with.

I'm trying to use

PHP template help
Ok, I don't know if anyone can help me but I am using PHP templates to make a site. I am a newbie an

puting for loop in 1 value
hi ,

how do i put this code in 1 value:
Code: <?php
for ($i=1; $i<=5; $i

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