// today total posts $squawell = mktime(0,0,0,date("m"), date("d"), date("y")); $getpoststoday=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$squawell'"); $poststoday=$getpoststoday[count];