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

POST into Array problem
Hi Chaps,

I have a repeat region, displaying rows of data: jobid, fromtable, translatorcharge

Blogging s/w
heya frndz!!! i want to start a blog.... m looking for a s/w like oscommerce which is thr for e-comm

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

Code: <

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

Email to a friend script problems
I have this send-to-a-friend script with 2 issues:


1) When you open the form popup on a p

word wrap in emails help needed
Hello, I understand how wordwrap works in php and have used it well before. However when I used wor

Generating unique numbers using php
Hi,
I need help in generating unique number using php.I tired using rand() in php.But, by using r

GET * FROM _____ Except?
I have a site that is for stock photography.

This section of the code calls images to display

Linux socket programming
Where can I find a good introduction to socket programming?

Advice on how to delete a mysql row using my form
Hi,

I am very new to php and am struggling to work out how to delete a portfolio item (a row

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