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

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

please help me in this update statment
hi every one

if I have table and this data in it

id name
10

regex for quoted text within a string
I am still getting the hang of regex expressions, but I cant seem to figure out how I would escape q

First root of a number
Hi,

I can't find any function in php to give me the first root of a number.
Is there any

Typing math
I've added support for typesetting math using LaTeX on the forums.

Example:
Code: [Select]

Handling text changed in text box control using Ajax
I need to create a web form with a text box control. When someone types text into the textbox I nee

Price in PR
Dear Experts,
Why we have to enter the price in the PR, and why there is no free goods indicato

Help with page encoding issue and weird characters
I'm trying to write a screen scraper and when I pull out the lines of the html file that I'm interes

Basic Question about Threading and PHP...
I have a page that I am working on and it is taking several hours to process. The basics of what th

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

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