is that the displaying of date doesnt work correctly
on php5 compared to php4.
Was there a change that caused this?
My current DB is
Date timestamp(14)
on php4 it displays correct as
11-06-2005
but on php5(local install) it displays as
-1-1--2005
The current convert code being used on both installs is:
Code: Select all
$date2 = $row['date'];
$year = substr($date2, 0, 4);
$month = substr($date2, 4, 2);
$day = substr($date2, 6, 2);
$date = "$month-$day-$year";