<?php
if ($ank->id == $user->id)
{
$res = $db->prepare("SELECT COUNT(*) FROM `mynews` WHERE `id_kont` = ? AND `read` = ?");
$res->execute(Array($ank->id, '0'));
$my = $res->fetchColumn();
$post = $listing->post();
$post->title = __('Новости друзей');
$post->url = '/mynews.php';
$post->counter = $my ? '+'.$my:null;
}
//$listing->display();
?>