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