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

Creating web pages by php
Hello again,
I was just wondering us there a way to use a php script to create a new web page. I

need help with this contact form
I made this form and I need it to read the data and write the data to a table and its not working ca

Storing user data help?
Hey Guys,

I'm not use if this question is to broad but I can always give you more informatio

parse error
On my local machine I keep getting parse error for my footer. When I put it online, it doesn't show

captcha error
I have been trying to implement a captcha in php...

here is the code..
Code: (php) [Select

Gerenate tabel in Php
I whant to generate a tabel takeing data from database like this one so the results to be display on

Javascript or not?
How many people prefer javascript/ajax sites? How many prefer the good old fashion straight php sit

Require select-option functionality in Module Pool Programming
Hi Gurus,

I am doing a development by Module Pool on Warehouse Management. For that devel

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

rename the file
File.txt

Code: ***DOCUMENT***
..DN:
000044255
..CB:
..SN:
..PY:
2009
..E

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