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.

Did you know?Explore Trending and Topic pages for more stories like this.
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

Simple Scraper... Weird Output
Okay, maybe I just need a Blue Monster and some sleep, but....

I'm scraping a ringtone site

mysql_query returning boolean instead of mysql ressource
Hi,

I seem to have a weird issue with the php command mysql_query. I pass 2 arguments the que

Filtering Tables
Hello Thanks for any help any one can give Im very new to PHP..

I need to pull data for clien

Attempt to assign property of non-object in...
I'm having issues with the following function in PHP 5...

function getTreeWithChildre

Website Direction...
I recently used this code to try and make it so the page loads as http://www.domain.com/ when you ty

sql error
I have been looking at this code for 20mins and can't work out what I am doing wrong. There is somet

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

DBCA Templates
Hi all,

I'm working on creating a template for DBCA, but can't find any documentation on the

Displaying a clickable playername
I am going wrong somewhere with the mysql_query, can someone please put me straight?

$playern

php email checker
I am having alot of trouble finding info on how to do these email things. I need to do the following

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