Posted by damezumari on 11/29/16 11:28
I found what was missing.
This works:
$csql = 'select
imagepath,
text,
lastupdated,
UNIX_TIMESTAMP(lastupdated) as lupdated
from citc_weather';
I tested the insert and select code with the 'lastupdated' field as
data type timestamp and as datetime. It worked in both cases.
Thanks for the help!
[Back to original message]
|