Show Your Support
$starttime = mktime(0, 0, 0, date('m'), date('d'), date('Y')); $newposts = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= $starttime"); $newthreads = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "thread WHERE dateline >= $starttime"); $poststoday = vb_number_format($newposts['count']); $threadstoday = vb_number_format($newthreads['count']);