迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
总额:
{php
$sum = $this->ci->db->select_sum('juanzengjine')->get('dr_1_form_jzjz');
var_dump($sum);
}
想统计某个表的一个字段的总和结果并输出,poscms应该怎们写才行,大致如上,上面代码是不行得。
$sum = $this->ci->db->select_sum('juanzengjine')->get('dr_1_form_jzjz')->row_array();
$sum = $ci->db->select_sum('juanzengjine')->get('dr_1_form_jzjz')->row_array();
{php
$sum = $this->ci->db->select_sum('juanzengjine')->get('dr_1_form_jzjz')->row_array();
var_dump($sum);
}
{php
$sum = $this->ci->db->select_sum('juanzengjine')->get('dr_1_form_jzjz')->row_array();
var_dump($sum);
}
{php
$sum = $this->ci->db->select_sum('juanzengjine')->get('dr_1_form_jzjz')->row_array();
var_dump($sum);
}
{php
$sum = $ci->db->select_sum('juanzengjine')->get('dr_1_form_jzjz')->row_array();
var_dump($sum);
}