<?php
if ($user['id'] == $ank['id']){
echo '<div class="nav2"><img src="/style/icons/love.png"> <a href="/user/relationships/relationships.php?menu=offers">Запросы в СП</a> ('.mysql_result(mysql_query("SELECT COUNT(*) FROM `relationships_new` WHERE `id_ank` = '".$user['id']."'"
,0).')</div>';
}
if ($user['id'] != $ank['id']){
echo '<div class="nav2"><img src="/style/icons/love.png"> <a href="/user/relationships/relationships.php?id='.$ank['id'].'">Добавить в СП</a></div>';
}
?>