echo \"<img src=\'/style/icons/us.png\' alt=\'\' class=\'icon\'/>n\";
$k_fr = mysql_result(mysql_query(\"SELECT COUNT(*) FROM `frends` WHERE `user` = \'$ank[id]\' AND `i` = \'1\'\"
, 0);
echo \'<a href=\"frend.php?id=\'.$ank[\'id\'].\'\"><font color=\"black\">Все друзья</font></a> <font color=\"#4d4c4c\">(\'.$k_fr.\')</font> | <a href=\"frendon.php?id=\'.$ank[\'id\'].\'\"><font color=\"black\">Друзья на сайте</u></font></a>\';
$k_post = mysql_result(mysql_query(\"SELECT COUNT(*) FROM `frends` INNER JOIN `user` ON `frends`.`frend`=`user`.`id` WHERE `frends`.`user` = \'$ank[id]\' AND `frends`.`i` = \'1\' AND `user`.`date_last`>\'\".(time()-1500).\"\'\"
, 0);
echo \' \'.( ($k_post==0) ? \'0\' : \'<font color=\"red\">\'.$k_post ).\'</font><br/>\';