From 01b00cc39295ecd1d45b5eb3cdb1e83009eb83a0 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Sun, 23 Jul 2023 18:17:25 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0=20mysql=20?= =?UTF-8?q?(#59)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://src.lopar.space/new-combats/game/pulls/59 --- clans_inf.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/clans_inf.php b/clans_inf.php index 04a0d877..cc98e6f5 100644 --- a/clans_inf.php +++ b/clans_inf.php @@ -16,15 +16,7 @@ $utf8Login = ''; $utf8Login2 = ''; $utf8Login = $uplogin; if ($uplogin != 'delete' && $utf8Login != 'delete' && $utf8Login2 != 'delete') { - $clan = mysql_fetch_array( - mysql_query( - 'SELECT `u`.* FROM `clan` AS `u` WHERE (`u`.`id`="' . mysql_real_escape_string( - $_GET['id'] - ) . '" OR `u`.`id`="' . mysql_real_escape_string( - $uplogin - ) . '" OR `u`.`name`="' . mysql_real_escape_string($uplogin) . '") LIMIT 1' - ) - ); + $clan = Db::getRow('select * from clan where id = ? or id = ? or name = ? limit 1', [$_GET['id'], $uplogin, $uplogin]); } if (!isset($clan['id'])) { die(