Unknown column 'id' in 'where clause'
This commit is contained in:
parent
b9ed3a039e
commit
5ff23b7b26
2
main.php
2
main.php
@ -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>";
|
||||
|
Loading…
Reference in New Issue
Block a user