Hi guys,
I have been tearing my hair out trying to work out how to add 7 days onto the current date.
This is how i am calcualting the current date:
// Set the timezone for getting the currrent local time
$timezone = +9;
<input type="hidden" name="date" value="<? print gmdate("Y/m/d @ H:i:s", time() + 3600*($timezone+date("I"))); ?>">
This is being stored in the DB like this:
$SQL = $SQL . " date_posted DATETIME NOT NULL default '0000-00-00 00:00:00', ";
So, what I am trying to do is create a variable called "Expiry Date" which I want to be $date + 7 days
Any help would be greatly appreciated.