• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

sum value codeigniter

  1. Kepala Suku

    Catatan Codeigniter Get Sum Value From MySql Query

    Below Function is used for getting sum value from MySql query: function getRemainder($id){ $q = $this->db->select("SUM(QTYMuat) as total_qty from distribusi WHERE NoTransaksi1 ='$id' OR NoTransaksi2 = '$id'"); $response = $q->get()->row(); return $response->total_qty; } I put that...