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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user