So I'm working on a VIP Subscription system for UberCMS, where when a user accesses your me page, it'll check to see if the time is greater than the expiration date, and it will delete the row.
Page loads fine and everything, but it won't query the delete. :L Code:
This also has everything that I see as important in it (Stuff in its general area that might affect it).PHP Code:<?php }} ?>
<?php if($users->GetFriendCount(USER_ID, true) != "0"){ ?>
<li id="feed-friends">
<strong><?php echo $users->GetFriendCount(USER_ID, true); ?></strong> You have
<span>
<?php
$time = time();
$subresult = mysql_query("SELECT ts_exp FROM vip_subs WHERE user_id = '".USER_ID."'");
if ($subresult < $time)
{
$delsub = mysql_query("DELETE * FROM vip_subs WHERE user_id = '".USER_ID."'");
}
else
{
print hello;
}
?>
:P Ive coded that myself, taken a while. Please, point out the newb stuff I've done![]()


Reply With Quote![[PHP] Problem with Subscription PHP? [UberCMS]](http://ragezone.com/hyper728.png)


