<?php
$guest = $db -> dbcount('COUNT(`id`)','guest');
$res2 = $db -> query("SELECT `time` FROM `guest`");
while($agu = $res2 -> fetch_assoc()){
if (strftime("%d.%m.%Y",$agu['time']) == date("d.m.Y"))
$cgu++;
}
if($cgu>0){
$cg= '+'.$cgu.'';}
echo '<span class="count">'.$guest.'<span class="chet">'.$cg.'</span></span>';
?>