почему на джоне440 форум не
работает?
// Меню выбора
$total_photo = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_album_files` WHERE `user_id` = '" . $user['id'] . "'"), 0);
echo '<div class="list2"><p>' .
'<div><img src="../images/contacts.png" width="16" height="16"/> <a href="profile.php?act=info&user=' . $user['id'] . '">' . $lng['information'] . '</a></div>' .
'<div><img src="../images/activity.gif" width="16" height="16"/> <a href="profile.php?act=activity&user=' . $user['id'] . '">' . $lng_profile['activity'] . '</a></div>' .
'<div><img src="../images/rate.gif" width="16" height="16"/> <a href="profile.php?act=stat&user=' . $user['id'] . '">' . $lng['statistics'] . '</a></div>';
$bancount = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_ban_users` WHERE `user_id` = '" . $user['id'] . "'"), 0);
if ($bancount) {
echo '<div><img src="../images/block.gif" width="16" height="16"/> <a href="profile.php?act=ban&user=' . $user['id'] . '">' . $lng['infringements'] . '</a> (' . $bancount . ')</div>';
}
$total_friends = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_contact` WHERE `user_id`='{$user['id']}' AND `type`='2' AND `friends`='1'"), 0);
echo '<br />' .
'<div><img src="../images/photo.gif" width="16" height="16"/> <a href="album.php?act=list&user=' . $user['id'] . '">' . $lng['photo_album'] . '</a> (' . $total_photo . ')</div>' .
'<div><img src="../images/guestbook.gif" width="16" height="16"/> <a href="profile.php?act=guestbook&user=' . $user['id'] . '">' . $lng['guestbook'] . '</a> (' . $user['comm_count'] . ')</div>' .
'<div><img src="../images/users.png" width="16" height="16"/> <a href="/users/profile.php?act=friends&user=' . $user['id'] . '">' . $lng_profile['friends'] . '</a> (' . $total_friends . ')</div>' .
'</p></div>';
selemet (02.08.2013 / 10:59)<a href="'.$rootpath.'/users/profile.php?act=info&user=' . $user['id'] . '">' . $lng['information'] . '</a>
Вопрос опять про вывод кода гг.
Нужно например вывести ссылки с счётчиком из users/profile.php например
[php]// Меню выбора
$total_photo = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_a
Fenixrus (02.08.2013 / 11:01)ссылки ведут где надо,а вот счётчики не работают
<a href="'.$rootpath.'/users/profile.php?act=info&user=' . $user['id'] . '">' . $lng['information'] . '</a>