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];