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

redirect standard error and assert (how to?)
How do you redirect standard error and assert?

---

(Why? I am creating an web app and

Character increment
Hi,

I am facing a scenario like above,but in my case i want to show up like Col A,Col B etc..

Check if another session of the page is running?
I want to keep people from opening multiple tabs, or sessions of my Facebook app. Is it possible to

Confusing Functions
So, I've been reading up on Functions and I like them! However, I need some help using variables in

session checking in page load
hai all I have a web site is www.Mryas.com in this my login page is Page1.aspx its co

Simple Variable Question
Hi everyone.... again,

I am really getting into php still. Learning more every day. I love it

dropdown menu
Hello everbody,

I am php newbie.
I need to develop a program that once click the drop do

Simple image grab script.
I was wondering if it was possible and if anyone knew how to make a simple php script that looks at

Better Method of a Member Cloud
I assume most people know how tag clouds work, where the tags most used are bigger and the least use

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

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