I Use this code when I save the date to my mySQL table:
$cdate=date("m/d/y");
$dateend = date("m/d/Y", strtotime("+3 days"));
//save record into table
mysql_query("INSERT INTO Mtable
VALUES ('$cdate',
'$dateend')") or die(mysql_error());
The above code works, but when I retrieve it and try to view the result using the following code:
echo $myrow[dateend];
echo $myrow[datepost];
I got this results :
for dateend 2009-04-20
and for datepost 2009-01-04
I tried to use this code:
echo date ("F j, Y",$myrow[dateend]);
echo date("F j, Y",$myrow[datepost]);
but I get the following result for both code:
December 31, 1969
Need your help, thank you in advance