<?php
$books = $db -> dbcount('COUNT(`id`)','books');
$coubo = $db -> dbcount('COUNT(`id`)','books','`time` > '.(time()-86400).'');
if($coubo>0){$nb='<span class="chet">+'.$coubo.'</span>';}
echo '<span class="count">'.$books.''.$nb.'</span>';
?>