I have a MySQL table with a datetime field that stamps the time the user
submitted the form. It works and looks like this:
$sql = "INSERT INTO table
VALUES(....now( ))";
On another php page to view results, the code:
printf("<br><td > %s</td>\n",
$newArray["datetime"]);
makes it looks like: 2005-02-15 14:44:51
I want it to look like:
Wednesday 15th of January 2005 05:51:38 AM
but when I try "date("l dS of F Y h:i:s A");" I get the format, but with
the CURRENT time. I can't get the time stamped in that format. Thanks.
submitted the form. It works and looks like this:
$sql = "INSERT INTO table
VALUES(....now( ))";
On another php page to view results, the code:
printf("<br><td > %s</td>\n",
$newArray["datetime"]);
makes it looks like: 2005-02-15 14:44:51
I want it to look like:
Wednesday 15th of January 2005 05:51:38 AM
but when I try "date("l dS of F Y h:i:s A");" I get the format, but with
the CURRENT time. I can't get the time stamped in that format. Thanks.
Comment