{% else-1 %}
PluginS * 1.18
(22 дек 2015, 21:40) (1/0) [1]
<?
/* one */
if ($user['id'] === $ank['id']){
echo '<img src="/style/icons/love.png"> <a href="/user/relationships/relationships.php?menu=offers">Запросы в СП</a>
(' . mysql_num_rows(mysql_query('SELECT `id_ank` FROM `relationships_new` WHERE `id_ank` = "' . $user['id'] . '"')) . ')';
}
/* two */
if ($user['id'] !== $ank['id']){
echo '<img src="/style/icons/love.png"> <a href="/user/relationships/relationships.php?id=' . $ank['id'] . '">Добавить в СП</a>';
}
?>
  • 1 из 1