Posts by Denis Vitonis • 3 points
2 posts
-
0
votes2
answers363
viewsA: Query and Subquery in codeigniter
Thanks for the help, but I solved it that way: $query = $this->db->query($q); Return $query->result_array(); //// IN THE CONTROLLER STAYED $this->load->model('Data_model', 'data');…
-
0
votes2
answers363
viewsQ: Query and Subquery in codeigniter
Salve Galera , I’m breaking my balls to assemble this query in the IC model "SELECT *, geral_cnpj as cnpj, geral_mesref as mesref, (SELECT CEILING(( (SELECT `geral_valor_total` as valormes from…