CodeIgniter Laravel PHP Example Javascript jQuery MORE Videos New
Need a Website Or Web Application Contact : +91 9437911966 (Whatsapp) Note: Paid Service

How to Codeigniter Select sum from database table


if (isset($options['openpos'])) {
    $this->db->select_sum('openPos');
    $this->db->from('requirement');
    $this->db->where('(closedPos = 0) ');
    $query = $this->db->get();
    return $query->row()->openpos;
}