<?php $_new = $db->query("SELECT * FROM `blogs` WHERE `time` > '".(time()-60*60*24)."'")->rowCount(); $_blogs = $db->query("SELECT * FROM `blogs`")->rowCount(); return ($_new > 0 ? '<span class="green">+'.$_new.'</span>' : '('.$_blogs.')');