This doesn't seem to be working:
If the user's account is older than 30 days old, redirect them to the address in the redict statement. If under 30 days, continue the script and load page.
I have placed the below code in the header of my html page....
<?
$SQL="SELECT regdate, last_login FROM users WHERE username='".$_POST['username']."' AND DATE_ADD(regdate, INTERVAL 30 DAY) > last_login";
if(mysql_num_rows(mysql_query($SQL))>0){
print "<script type=\"text/javascript\">window.location = \"home.php?page=manage&action=billing\";</script>";
die;
}
?>
//body html here