直接上代码:
<li>多个数据表今日发布信息总数:
<? $total=$empire->gettotal("select count(*) as total from phome_ecms_news where newstime>=".to_time(date("Y-m-d")." 00:00:01"));
$total2=$empire->gettotal("select count(*) as total from phome_ecms_article where newstime>=".to_time(date("Y-m-d")." 00:00:01"));
$total3=$empire->gettotal("select count(*) as total from phome_ecms_download where newstime>=".to_time(date("Y-m-d")." 00:00:01"));
$out=$total+$total2+$total3;
?>
<?=$out?>篇</li>本文地址:https://www.moyubuluo.com/notes/1252.html
加入我们:微信:搜索“Moyu-Blog” 帝国CMS模板客户群:QQ二群---909235407 QQ一群(已满)---106997031
版权声明:本文采用[BY-NC-SA]协议进行授权,如无特别说明,转载请注明本文地址!












