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()) {