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

This commit is contained in:
lopar 2018-03-02 01:23:14 +02:00
parent 68ca45299a
commit eb856a79da

View File

@ -19,7 +19,7 @@ while ($message = $chat->fetch_assoc()) {
}
$msg = filter_input(INPUT_POST, $_POST['msg']);
$uid = filter_input(INPUT_SESSION, $_SESSION['uid']);
$uid = $_SESSION['uid'];
if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ?i, "?s")', 1, $uid, $msg);
?>