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

Email Form Syantax Issue 2
How to make this look FROM:"OUR TEAM" instead of FROM:abc@mail.com

$headers = "

Delete all from a table
I can not get the following code to work. If I run the sql statement in the db it will delete all t

Port scanner problem
Hai
recently i developed one app through which u can check the opened and closed ports under an

Credit card verification
I have a client who wants to process credit card transactions from his web site rather than the goin

Run function every 5 mins ??
I have a function PostMessage()

How can I run it every 5 mins ??

Wordpress IE issue
So I am trying to add the background shadow to my wordpress page. It works fine in Firefox but does

extending tidy
I have problem with type-hinting and extending tidy. This code creates error:
Code: class cMyTidy

Object Interfaces
EDIT: Never mind, I just updated to php 5.

Hey all,

I'm currently experimenting with p

Error with login script
I am getting an error with my login script:

Error:
Code: Warning: Cannot modify header inf

How to assign JS screen.width to ASP.Net variable
I've got this ASP.net routine that gets the cookie value of the screen width, but now I need to chan

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