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