Re: Timestamp problem
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Timestamp problem

From: damezumari <jannordgreen@gmail.com>
Date: Tue Oct 04 2005 - 17:13:36 CEST

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!
Received on Tue Oct 18 02:31:39 2005