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