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

Using loop to count number of entries
I'm writing a program that must ask user to type in numbers. After each entry, the program has to re

echo $rows help
Hi all,

Hopefully something simple that I don't know!

I have this:

Code: [Selec

path to include folder
Hi everyone,

When I'm testing locally, I have to add the name of the site folder as part of t

Local file browser with php
Halo..

So this is what i want to create. I have a folder that i share and it has many movies.

Clean URLs
Hi I was wandering if anyone has ever implemented URLs on their PHP run website using URLS like wiki

dinamic "textboxes"?
Ey all, my first post here, i hope its not a hard one

I display mysql results in a table

present value of sequence?
Hi

Please help me to find out the present value of sequence?

Thanks

Files in current folder. Should be an easy fix.
Never mind. I've asked about this before and just found my answer. Anyway to delete this?

Passing JS to PHP
So I have the following
Code: <?php
getdetails(?><script type="text/

Multiple forms on the same page (safari)
Hello everyone,

I have 3 forms on the same page, that opens in a new window and submits to a

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