This commit is contained in:
Igor Barkov (iwork) 2020-06-23 16:41:40 +03:00
parent a367f6006c
commit 447aeded96
1 changed files with 1 additions and 1 deletions

View File

@ -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 "<div style='background-color: #ffaaaa;'>Ошибка: " . $e->getMessage() . "<br> В файле: " . $e->getFile() . " (" . $e->getLine() . ")</div>";
}