标签:think for mys HERE die time pre span sel
$cjrili_list = CjriliModel::select(); $cjrili_group = Db::query("SELECT time, count(distinct country) as country_row_num, count(*) as time_row_num FROM think_cjrili where 1 GROUP BY time"); //print_r($cjrili_group);die; foreach ($cjrili_list as $key => $value) { foreach ($cjrili_group as $k => $v) { if($value[‘time‘]==$v[‘time‘]){ $cjrili_list[$key][‘time_row_num‘] = $v[‘time_row_num‘]; $cjrili_group[$k][‘time‘] = ‘‘; } } } print_r($cjrili_list);die;
PHP mysql 按时间分组 表格table 跨度 rowspan
标签:think for mys HERE die time pre span sel
原文地址:https://www.cnblogs.com/shaoing/p/8973308.html