echo '<div class="menuh"><a href="/catalog/index.php?act=view_catalog&id='.$res['id'].'">'.$res['name'].'<span class="count">'.mysql_result(mysql_query("SELECT COUNT(*) FROM `game` WHERE `mod` = 1 AND `act` = 1 AND `id_category` = ".$res['id']), 0).''.(($today>0).' </div><span class="count"><font style="color: red"> +['.$today.'] </a></div></div>');
$total_amount = mysql_result(mysql_query("SELECT COUNT(*) FROM `game` WHERE `mod` = 1 AND `act` = 1 AND `id_category` = " . $res['id']), 0);
echo '<div class="menuh"><a href="/catalog/index.php?act=view_catalog&id=' . $res['id'] . '">' . $res['name'] . '<span class="count">' . $total_amount . ($today > 0 ? ' <font style="color: red"> +[' . $today . '] </a></font>' : null) . '</span></div>';