Garen
- Garen 回答了问题 查询列表怎么查看当前和上次排行名次?
用 strtotime() 函数吧,strtotime('last monday')得到上个周一的0:00:00,strtotime('last monday')-7243600 就是上周一的0:00:00.在这个时间段的投票就是上周的投票,再用 sql 的 between and 就行了啊.上月的也是同理.
要注意strtotime('last monday')是上个周一的0点,如果今天是周二,他的意思是昨天0点.其实就是上周日的24点. - Garen 提出了问题yii2 如何使用 HTML 框架
- Garen 2016-08-23 已签到连续签到1天,获得了5个金钱
碉堡了…………