Помогите соединить
wladislavik

:
Помогите соединить
16 Июня 2014Всем привет ,помогите этот код соединить вмести ,чтоб все эти увидомления плюсовались
<?
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `frends_new` WHERE `to` = '$user[id]' LIMIT 1"), 0) > 0)
{
echo "<img src='/style/img/notification.png' alt='' /> <a href='/user/frends/new.php'><u>+ $zoz</u></a> n ";
}
$lenta = mysql_result(mysql_query("SELECT COUNT(`read`) FROM `tape` WHERE `id_user` = '$user[id]' AND `read` = '0' "),0);
Error_Reporting(E_ALL & ~E_NOTICE);
if($lenta>0) echo "<img src='/style/img/notification.png' alt='' class='icon'/> <a href='/user/tape/index.php'><u>+ $lenta</u></a> ";
$discuss = mysql_result(mysql_query("SELECT COUNT(`count`) FROM `discussions` WHERE `id_user` = '$user[id]' AND `count` > '0' "),0);
if($discuss>0) echo "<img src='/style/img/notification.png' alt='' class='icon'/> <a href='/user/discussions/index.php'><u>+ $discuss</u></a> ";
?>