Код: Выделить всё
//...
$query = "update acesso set usuario=$usuario, saldo=$saldo, data=$data, rank=$rank, senha=$senha, id=$telegram_id where usuario=$usuario";
try {
mysqli_query($con, $query);
} catch (mysqli_sql_exception $e) {
echo $e;
exit;
}
Код: Выделить всё
mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank='0', id='0' where usuario=teste' at line 1 in /var/www/html/admin/update_user.php:19 Stack trace: #0 /var/www/html/admin/update_user.php(19): mysqli_query() #1 {main}Подробнее здесь: https://stackoverflow.com/questions/787 ... ng-mariadb
Мобильная версия