|
Hi,
I'm having some problems with the following:
$query = "SELECT * FROM table ORDER BY date DESC";
$result = mysql_query($query);
$result_row = mysql_fetch_assoc($result);
$time = strtotime($result_row['date']);
$date = date("F jS, Y g:i:s A", $time);
echo $date;
So, if say one row in my database had a date TIMESTAMP of 20050214120000, it should display as February 14th, 2005 12:00:00 PM. Instead, the code displays all row dates as December 31st, 1969 3:59:59 PM. Can someone help me with this or point me in a direction. Thanks!
|