From f96118728722ce152c47c4119fe7fb352ed5f656 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Tue, 24 Jul 2007 01:35:30 +0000 Subject: [PATCH] Switching from timestamp to datetime means we have to specify the time we want stored in the field. In any case we want to be explicit so specify 'NOW()' for the timestamp/datetime field. --- include/incl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/incl.php b/include/incl.php index 8469faa..615c9bb 100644 --- a/include/incl.php +++ b/include/incl.php @@ -264,8 +264,8 @@ function addmsg($text, $color = "black") if($color) $text = " $text \n"; - $sQuery = "INSERT INTO sessionMessages VALUES (null, null, '?', '?')"; - if (!query_parameters($sQuery, session_id(), $text)) + $sQuery = "INSERT INTO sessionMessages VALUES (null, ?, '?', '?')"; + if (!query_parameters($sQuery, "NOW()", session_id(), $text)) { echo "An error has occurred in addmsg()"; echo $text;