Файл: public_html/klan/inc/info.php
Строк: 24
<?
echo "<div class='menu'>";
if (mysql_result(mysql_query("SELECT COUNT(id) FROM `clan_user` where `id_user` = '$user[id]' AND `activaty` = '0' LIMIT 1"),0)==0){
echo '<img src="/style/ank_img/world.png" alt="" /> Клан: <font color="blue">Нету</font></a></div>';
}else{
$clan=mysql_fetch_assoc(mysql_query("SELECT * FROM `clan_user` WHERE `id_user` = '$ank[id]' AND `activaty` = '0' LIMIT 1"));
$clan_name=mysql_fetch_assoc(mysql_query("SELECT * FROM `clan` WHERE `id`= '$clan[id_clan]' LIMIT 1"));
echo '<img src="/style/ank_img/world.png" alt="" /> Клан: <a href="/klan/klan.php?id='.$clan[id_clan].'">'.$clan_name['name'].'</a></div>';
}
?>