Blogger Information
Blog 7
fans 0
comment 0
visits 7692
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
thinkphp时间区域内查询
兵临城下的博客
Original
1734 people have browsed it

 $Model = new \Think\Model();

$sqlstr = 'SELECT b.district,count(a.centercode) as count from wx_archives a,wx_nation b WHERE a.centercode=b.code and a.step_status=9 and a.examine_status=1 and unix_timestamp(a.add_time) > '.strtotime($datebegin).' and unix_timestamp(a.add_time) < '.strtotime($dateend).' GROUP BY a.centercode ORDER BY count desc';

$data = $Model->query($sqlstr);


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post