View Single Post
Old 10-13-2008, 08:11 PM   #1 (permalink)
KingOfTheSouth
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default Stuck with timestamps

I own a online game and have subscriptions to the game and I am trying to get the subscriptions last only last 30 days which I am having trouble with..

php Code:
if($user["status"] == 3)
        {
            $sup = "No, <a href='credits.php?action=purchase'>Want to be one?</a>";
        }else{
            $sup = "Yes";
        }

if($user["substatus"] == 0)
        {
            $sub = "No";
        }
        elseif($user["substatus"] == 1)
        {
            $sub = "Level One (+5 turns / +500hold)";
        }
        elseif($user["substatus"] == 2)
        {
            $sub = "Level Two (+10 turns / +1,000hold)";
        }
                elseif($user["substatus"] == 3)
        {
            $sub = "Level Two (+15 turns / +1,500hold)";
        }


if($user["substatus"] == 1){$length = 1199145600;}
if($user["substatus"] == 2){$length = 1199145600;}
if($user["substatus"] == 3){$length = 1199145600;}

$expire = $subtime["datebought"]+$length;


Here is the code I just cannot make them only last 30 days. If you can help me please I will appreciate it

Last edited by Wildhoney : 10-13-2008 at 09:04 PM.
KingOfTheSouth is offline  
Reply With Quote