Чат на коленке

This commit is contained in:
lopar
2018-03-02 01:33:18 +02:00
parent eb856a79da
commit 101be15c96
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ while ($message = $chat->fetch_assoc()) {
echo $message['msgdate'].": " . $message['msg'];
}
$msg = filter_input(INPUT_POST, $_POST['msg']);
$msg = filter_input(INPUT_POST,'msg']);
$uid = $_SESSION['uid'];
if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ?i, "?s")', 1, $uid, $msg);