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

RSS feed - FeedList for WordPress
Hi,

I'm trying to alter the FeedList plugin for WordPress so that I can click on the title of

Changing files over
Just thought I'd start with the new forums looking really nice .

Ok basically I've made this

Rounding a number queried from a database
I know that to display a rounded number you just do echo "round($number)";. But how would

Reg Ex
Im trying to search for the string: srv_9 (Dead ???)

I thought to use preg_match, however I d

string to currency format
Hi guys...

Actually I chunk out some data from txtfile and one of the data contains amount va

foreach help.
Hello all,

First time I'm attempting to use a foreach statement and was just wondering if my

$variable = $variable
Hello

Sorry if this is a really simple question but I have run out of ideas. Is there a reall

Multiple websites question.
Hi, does php have any functionality that enables a programmer to extract information from a website

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

PHP header help!
Hi all I am trying to get this php page to refresh every 5 seconds on my phone which is an aastra 48

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