Sub Query in CodeIgniter
Few month ago, i posted about sub query in codeigniter here. And today i’ve found another way. It using active record class in codeigniter. For example: $this->db->select(‘(SELECT SUM(payments.amount) FROM payments WHERE payments.invoice_id=4’) A…