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

This commit is contained in:
lopar 2018-03-02 01:35:06 +02:00
parent 101be15c96
commit ca02c1ca30

View File

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