From 1c0191d7c1e0699dcf495fded8e23e77665aa429 Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 16 Feb 2018 03:33:06 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D0=BA?= =?UTF-8?q?=D0=BB=D0=B0=D0=BD=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clan.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/clan.php b/clan.php index 9543473..a70a9f1 100644 --- a/clan.php +++ b/clan.php @@ -6,9 +6,6 @@ - - - query('SELECT * FROM `clans` WHERE `name` = "?s"', $claninf)->fetch_assoc())) { echo "

{$query['name']}

{$query['descr']}

"; + $clanlist = db::c()->query('SELECT `login`,`status` FROM `users` WHERE `klan` = ?i',$query['id']); + while ($member = $clanlist->fetch_assoc()) { + echo " ",$member['login']," - ",$member['status'],"
"; + } } else { echo "

Список кланов

"; $query = db::c()->query('SELECT `align`,`name`,`short` FROM `clans` ORDER BY `name` ASC'); @@ -31,7 +32,11 @@ if ($claninf AND ($query = db::c()->query('SELECT * FROM `clans` WHERE `name` = echo " ",$clanrow['name'],"
"; } } -/* +?> + + + + else { $clan = $_GET[clan];