Список кланов
This commit is contained in:
parent
774fca40eb
commit
543a217eb6
6
clan.php
6
clan.php
@ -26,13 +26,13 @@ if ($claninf AND ($query = db::c()->query('SELECT * FROM `clans` WHERE `name` =
|
||||
echo "<h1>{$query['name']}</h1><p>{$query['descr']}</p>";
|
||||
} else {
|
||||
echo "<h1>Список кланов</h1>";
|
||||
$query = db::c()->query('SELECT `name`,`short` FROM `clans` ORDER BY `name` ASC');
|
||||
$query = db::c()->query('SELECT `align`,`name`,`short` FROM `clans` ORDER BY `name` ASC');
|
||||
while ($clanrow = $query->fetch_assoc()) {
|
||||
echo "<img src=i/klan/",$clanrow['short'],".gif>",$clanrow['name'],"<br>";
|
||||
echo "<img src=i/align_",$clanrow['align'],".gif> <img src=i/klan/",$clanrow['short'],".gif> <a href=?",$clanrow['name'],">",$clanrow['name'],"</a><br>";
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
<a href=?",$clanrow['name'],"></a>
|
||||
else {
|
||||
$clan = $_GET[clan];
|
||||
$query=mysql_query("SELECT * FROM clans WHERE short = '$_GET[clan]' LIMIT 1");
|
||||
|
Loading…
Reference in New Issue
Block a user