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

foreach and array need help combining
Hi guys.

Here's the code

Code: array(
'tag' => 'code',<

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

I need to pull data for clien

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

void* and sizeof()
Hi,

Using void* and sizeof is it possible to get the value of the object ?

I understan

I need an iframe that calls up a different page according to the date
hi

I don't know any php (only html) and I urgently need to do the following:

I need a

passing an array of objects after submit
How do I do this? This is what I have tried and it is not working.

<form method="

error with opendir
when i do this

if ($handle = opendir($dir)) {
while (false !== ($file = readdir($han

PEAR in appliactiond development
When I was picking up PHP I went from procedural programming, fairly quickly into OOP, then after wr

Running External Scripts
I am very new to PHP and am not even sure what I'm asking is possible. I have just installed mediaW

error help - Dynamic Image
I've been working on making my site less cluttered in the directories and more secure lately. In an

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