Убраны mysql_query.

This commit is contained in:
Ivor Barhansky 2023-12-02 02:23:36 +02:00
parent b69f57a73a
commit 9985d2f20c
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ if ($p['deletInfo'] != 1) {
return; return;
} }
$uu = \Core\Db::getRow('select * from users where login = ? order by id limit 1', [$_POST['logingo']]); $uu = \Core\Db::getRow('select id, login, info_delete from users where login = ? order by id limit 1', [$_POST['logingo']]);
if (!isset($uu['id'])) { if (!isset($uu['id'])) {
$uer = 'Персонаж не найден.'; $uer = 'Персонаж не найден.';

View File

@ -8,7 +8,7 @@ if ($p['m1'] != 1 && $p['citym1'] != 1) {
return; return;
} }
$uu = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string($_POST['logingo']) . '" LIMIT 1')); $uu = \Core\Db::getRow('select id, login from users where login = ? order by id limit 1', [$_POST['logingo']]);
if (!isset($uu['id'])) { if (!isset($uu['id'])) {
$uer = 'Персонаж не найден в этом городе'; $uer = 'Персонаж не найден в этом городе';
return; return;