Posted by damezumari on 11/24/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!
Navigation:
[Reply to this message]
|