Чат на коленке
This commit is contained in:
parent
101be15c96
commit
ca02c1ca30
2
chat.php
2
chat.php
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user