hi,
need a little help here in displaying record coming from database.
I have dateUpdated column field name (timestamp) on my table, and I output it on my php page using the date function.
when i view it .. all of the date value displays "1970-01-01"
thanks in advance
need a little help here in displaying record coming from database.
I have dateUpdated column field name (timestamp) on my table, and I output it on my php page using the date function.
Code:
//put it in a var
$updated = $row[dateUpdated] ;
$updated = date("Y-m-d",$updated);
// display
echo $updated ;
when i view it .. all of the date value displays "1970-01-01"
thanks in advance