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

Timestamp problem

From: damezumari <jannordgreen@gmail.com>
Date: Mon Oct 03 2005 - 23:11:17 CEST

I use PHP 4.4.0 and MySQL 4.0.26 and Mozilla Firefox.

This code:

$dummy = strtotime("-13 hour");
$csql = "update citc_weather
        set imagepath = '$p_image',
        text = '$p_text',
        lastupdated = $dummy
        where id = 1";

where lastupdated is of timestamp(14), doesn't work.

All that gets posted in lastupdated is 00000000000000.
Received on Tue Oct 18 02:31:05 2005