how to use order by codeigniter |
am trying to use order by but i don't get all the results in table.
i have payment table Code: payments={ MY_model.php PHP Code: function get_order_by($array=NULL) { action_helper.php PHP Code: function joide($array, $value, $key=NULL) { PHP Code: function get_order_by_amount($array=NULL) { controller.php PHP Code: $payments = joide($this->amount_m->get_order_by_amount(['academicID' => $academicID]), 'obj', 'invoiceID'); so when i run <?php dd($mummy) ?> i don't get all the results, i mean it won't get the amount = 3 and 10 where invoiceid =1 and 3 respectively but it returns the 2000, 3000 and 600, it seems it doesn't return the amount where invoiceID is the same like for 1 and 3 |
Messages In This Thread |
how to use order by codeigniter - by kayinja.denis - 06-21-2017, 02:58 AM
RE: how to use order by codeigniter - by InsiteFX - 06-21-2017, 03:19 AM
RE: how to use order by codeigniter - by kayinja.denis - 06-21-2017, 04:06 AM
RE: how to use order by codeigniter - by Martin7483 - 06-21-2017, 03:48 AM
RE: how to use order by codeigniter - by kayinja.denis - 06-21-2017, 04:17 AM
RE: how to use order by codeigniter - by InsiteFX - 06-21-2017, 04:05 AM
RE: how to use order by codeigniter - by Martin7483 - 06-21-2017, 05:31 AM
RE: how to use order by codeigniter - by Martin7483 - 06-21-2017, 05:33 AM
RE: how to use order by codeigniter - by kayinja.denis - 06-22-2017, 10:45 PM
|