<?php $_count_posts = $db->query("SELECT * FROM `chat` WHERE `time` > '".(time()-3600*24)."'")->rowCount(); return ($_count_posts > 0 ? '<span class="green">+'.$_count_posts.'</span>' : null);