$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 . ']</font>' : null) . ' </span></a></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 . ']</font>' : null) . ' </a></span></div>';