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.
This commit is contained in:
Chris Morgan
2007-07-24 01:35:30 +00:00
committed by WineHQ
parent d0a45fe550
commit f961187287

View File

@@ -264,8 +264,8 @@ function addmsg($text, $color = "black")
if($color)
$text = "<font color='$color'> $text </font>\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;