<?php if($user['id']){ $c = mysql_result(mysql_query('select count(`id`) from `privat` where `ho` = "'.$user['id'].'" and `read` = "0"'),0); if($c != 0) echo '<div class="rega"><a href="/privat">Сообщения</a> (+'.$c.')</div>'; } ?>