I have written a query in Codeigniter controller but i am not sure how to use the variable from the database.
Controller:
$query = $this->partner_vs_skill_model->where('partner_id',$id )
->like('skill_id', $value)->get_all();
$row = count($query);
What I expect is to use the code like below
echo $query->id;
Database table (partner_vs_skill_model):
id | partner_id | skill_id
1 | 2 | 3
2 | 5 | 4