View file engine/services/guestbook.php
<?php $today = $sql->query('SELECT count(*) FROM `guest` where `time` > '.mktime(0,0,0))->result(); echo '<div class="link"><a href="/pages/guestbook.php">Мини-чат</a> ('.$sql->query('SELECT count(*) FROM `guest`')->result(). ($today > 0 ? '+'.$today : '').')</div>';