统计今日0点后发布的文章数量
$todaytime=strtotime(date("Y-m-d"),time());//今日0点后的时间戳 $wzshu=$empire->gettotal("select count(*) as total from {$dbtbpre}ecms_字段名 where newstime>=$todaytime");
就是这么简单!
效果如下:
统计今日0点后发布的文章数量
$todaytime=strtotime(date("Y-m-d"),time());//今日0点后的时间戳 $wzshu=$empire->gettotal("select count(*) as total from {$dbtbpre}ecms_字段名 where newstime>=$todaytime");
就是这么简单!
效果如下: