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

Not Loading Function Into Div
I'm not sure whether to put this under the php forum or ajax forum but because I tink it's more of a

Searching keywords from array
Hello everyone, Im just wondering if someone could help me with another issue im having. Im still le

PHP & Images [Resize, Crop, Save]
Hey! Well I have a little dilema, hoping I could find some guidance.

I have a CMS and on the

PHP and Javascript
Hi Guys,

Im trying to load the contents of an html file into a text area for editing, this is

How to display random record from table?
I have the following code:

Code: <?php
$display_block .= "<input type=

Changing color in GD via variable?
Hey guys, I'm new here. x)

I'm very much a noob when it comes to PHP, but I'm trying to learn

Grouping and sorting results
Please help with this query.

I have 2 tables in a database, countires and cities. states look

Bandwidth monitoring?
Hi guys,

I need a little information I have written a php app and I occurred to that I need

Help with forum quoting?
Hi im working on a forum and I have alomost finished it but i want a user quote system like twitter

Web Application Recipe
Hi Guys!

I am working with the Web Application recipes. I am currently working on the sen

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