$getviewstoday=$db->query_first("SELECT SUM(views) AS threadviews FROM thread WHERE dateline>='$vbs_today'"); $viewstoday=number_format($getviewstoday['threadviews']);