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

SMTP server...
I recently found a tutorial online on SMTP authentification for sending emails from webpages, here i

UDS 4.0 Datatype issue
UDS 4.0.322 -- connecting to NI Labview 9.0

When using connection method: Cache with live

ereg_replace()
Basically what i need to do is

$title = "This Suck's"

$striped = ereg_repl

please hep to get values from a table row
can anyone tel me how I can select and get data from one row by pressing an Edit button in that row

fopen() security
As i understood the usage of fopen() for it to function correctly the Dir you write to has to be rw

unexpected T_SL without a shift left token
Nothing too see here, I'm an idiot and resolved the problem.

Selecting an "empty" date formated field
How do you select an "empty" date field? I've tried the few ways I can think.
SQL> select

Stats of viewers
Hello. I have a website in php and people can login. I want to make an admin control panel where u c

Multidimensional $_POST
Hello

How to get a single array from array of array (2 - dimension).
For example I have a

PHP code needed to get/post form fields and request mysql query results.
I'm new to PHP

I've created an html form to allow the user to request a basic telephone dire

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