unable to display values from array in a view |
(11-25-2017, 10:34 AM)PaulD Wrote: Your problem is that your array does not contain the index 'payment_description' so when you try to output it then php is saying it is not defined, which it is not. It seems you are selecting it though in your model, which is strange. Hi Paul, Thanks for your reply. $this->db->last_query() Return this query Quote:SELECT `payment_amount` FROM `payments` WHERE `payment_student` = '44' AND date_format(fee_month,"%d-%m%Y") >= date_format(curdate(),"00-%m-%Y") AND `payment_status` =0 I tested the query in Mysql Workbench, it return data. I tried only the payment_amount in my view, but still the same error. Please check the last lines of my view are these correct? |
Welcome Guest, Not a member yet? Register Sign In |