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;