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