From 24c9a0978cddbafe75ac3ef7bd7460d24c6e6697 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Fri, 3 Jul 2020 16:17:25 +0300 Subject: [PATCH] Dbtablename changed --- enter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enter.php b/enter.php index 55064ba..5dda3be 100644 --- a/enter.php +++ b/enter.php @@ -39,7 +39,7 @@ if ($username && $password) { db::c()->query('INSERT INTO online (user_id, date, room) VALUES (?i, ?i, ?i)', $data['id'], time(), $data['room']); } - db::c()->query('UPDATE `users` SET `sid` = "?s", `enter_game` = ?i WHERE `id` = ?i', session_id(), 1, $data['id']); + db::c()->query('UPDATE `users` SET `session_id` = "?s", `enter_game` = ?i WHERE `id` = ?i', session_id(), 1, $data['id']); // DEPRECATED. NO TABLE IN DB! // $sms = db::c()->query('SELECT * FROM `telegraph` WHERE `receiver` = ?i', $data['id']); // while ($res = $sms->fetch_assoc()) {