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

Lining up columns nicely.
Hello everyone, I'm having problems with making columns line up properly. Here is my code:

help with email script...
hey

I need help with my mail script

when the form on http://www.mcgdesignstudio.com/c

file_put_contents and createimagefromjpeg
All,
I do somethings and then I have the following code:
file_put_contents('./test/'.$filename

Deleting a record php
Attempting to setup delete a record page. The below code I put together doesn't seem to work.

Libraries in C++
Hi all,

I have two libraries. one is based targeted on linux platform and uses another li

update sql when refresh - php
hi
I have made a table (attachement)

the users can update the sql database using + or x bu

Extending Exception to contain method name
I was wondering, if there's a way to extend Exception in such a way, that it would contain name of a

str_replace help
I am thinking str_replace is my only option to filter outputs from my database to convert them to sa

Amatuer requiring assistance
Beginner and amateur in need of assistance

My Site - (Spare Parts for Domestic Appliances)

$variable $variables type question
I need to be able to designate an array element dynamically, so I thought to use a variable variable

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