lets say the query from my controller is $query.
how to display the data other than using this kind of code?
foreach($query as $row){
echo $row->student_id;
}
any other than this coz the query only have one row
any way that can i access the returned array like this?
$query['student_id'];
let’s say your table have the following fields
have your model or controller return only one row.
then in your view