I have:
PHP code: $date = date("F j, Y, g:i a");
and send this to my datebase
I use
$date = $gg['date'];
to get the date from my datebase
When I echo $date
-> June 30, 2012, 3:45 pm
The time is already set in the database with mail.php, and in ordertracking.php I'm getting that time and want to add one week to it.
So I want to add one week to: $date = $gg['date'];
$connection = mysql_connect("localhost","root","") or die ("Can't connect");
mysql_select_db("shoppingcart", $connection) or die ("Can't connect");
$ordertracking = mysql_query("SELECT * FROM `ordertracking` WHERE orderid='$orderid'");
while($gg=mysql_fetch_array($ordertracking))
{
$progress = $gg['progress'];
$date = $gg['date'];
}
mysql_close($connection)