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

Login logout link help
Hi all,

Im new to php and Im having trouble creating a login/logout link for my page that dis

PHP mail() returns true but doesn't work
First off I apologize if this is a newbie question, and I generally don't like asking questions that

Search function
I am looking for some guidance from the experts.

I am trying to create a search function. It

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

Need help with a mail notify function
I was tasked with setting up a site that's been prewritten. The site is basically a form that captur

Share admin accross websites
I'm using .net memberships and roles in one of my sites, but I need to be able to share logins and p

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th

SQl num_rows problem
when i try to count rows from an SQL select i get an warning

Code: [Select]$countviews = mysq

form problem
below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the for

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