diff --git a/chat.php b/chat.php index 3e166f2..5a07afe 100644 --- a/chat.php +++ b/chat.php @@ -15,7 +15,7 @@ require_once "config.php"; $msg = filter_input(INPUT_POST, 'msg'); $uid = $_SESSION['uid']; if ($msg) { - try { db::c()->query('INSERT INTO `chat` (`uid`, `msg`) VALUES (?i, "?s")', $uid, $msg); } + try { db::c()->query('INSERT INTO `chat` (`user_id`, `msg`) VALUES (?i, "?s")', $uid, $msg); } catch (\Krugozor\Database\Mysql\Exception $e) { echo "