unable to display values from array in a view |
11-25-2017, 01:45 PM
(This post was last modified: 11-25-2017, 01:49 PM by PaulD. Edit Reason: minor typos )
Try something like this:
PHP Code: public function get_fee_invoice_4class($data) Should work, however this is BAD, because imagine you have 1000 students, then you will have 1000 database calls because of running a query in a loop. I think what you really need is a more complex query with a join from students to students payments to get all the data in one query. |
Welcome Guest, Not a member yet? Register Sign In |