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

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

Allowing ' and "
Hello everyone,

I am creating a form where users submit information to go into a database. I

Problem with "dynamic" index page
Hi. I have one question. In my index.php page I have this kind of code:
Code: // listaa sivut

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

How do I send data using an html link
Hi

If I have
<a href="main_file.php">

How do I send data t

Multiple WHILE loops help
Hi there. I'm writing an application that is pulling and displaying results for real estate listing

getting most records by count
Code: [Select]<?php

$connect = mysql_connect("localhost","dam

Count Session and Trigger Events
I am New in PHP, seeking a method to count logged users by counting the sessions or any …, is

Transaction variant for VA02 not working
My requirement is to have transaction for user to only add the output and print a sales order.

PHP Script runs on CLI but not through web browser
I am running into an issue that I just can't seem to find the answer to. I have a Windows Server 200

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