Hi!
I want to have a page expire after 1 day. I want it so that it stores in the database the expire date and time (+ 1 day) and when the page is viewed it checks that the time has not gone pass its expiry. Lets say this for an expample:
$time = time();//The time now
$expire = time();//The time now + 1 day
$sql = "select expire_time from clients where clientid= $clientsnumber";
$result = // blah blah for query ect
if ($result['expire_time']<=$time)//If expire time has gone
{
die "This page has expired.... please request staff to re activate it for another day.";
}
else
{
//the rest of it (like insert new expire time or view info)
Any idea's how to do the time variables?
Thanks in advance
James