{% else-1 %}
(22 дек 2015, 20:55) (1/0) [1]
<?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>';
}
?>
  • 1 из 1