Unknown column 'id' in 'where clause'

This commit is contained in:
Igor Barkov (iwork) 2020-07-06 10:13:14 +03:00
parent b9ed3a039e
commit 5ff23b7b26

View File

@ -15,7 +15,7 @@ require_once 'functions.php';
$tmaz = time();
try {
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `user_id` = ?i', time(), $user['id']);
} catch (\Krugozor\Database\Mysql\Exception $e) {
//echo "<div style='background-color: #ffaaaa;'>Ошибка: " . $e->getMessage() . "<br> В файле: " . $e->getFile() . " (" . $e->getLine() . ")</div>";
echo "<div style='background-color: #ffaaaa;'>Ошибка: " . $e->getMessage() . "<br> В файле: " . $e->getTraceAsString() . " (" . $e->getLine() . ")</div>";