Home Article php 实现按每天、每周、每月、每年的统计

php 实现按每天、每周、每月、每年的统计

Source:每天、每周、每月、每年 Release time:2019-07-22 Author:Mr.赵 Reading volume:54
$connum = db("")->field("FROM_UNIXTIME(create_time,'%Y-%m-%d') as time")->order("time desc")->select();  //按日
$connum = db("")->field("FROM_UNIXTIME(create_time,'%Y-%m') as time")->order("time desc")->select();
$connum = db("")->field("FROM_UNIXTIME(create_time,'%Y') as time")->order("time desc")->select();
  
I want to comment
Leave a message
http://boke.zhaozhiqi.top/index.php/
User login
You have not written any reviews yet!
You have commented!
Can only praise once!
You have a collection!