I am trying to display data trough Array but is shows error : Attempt to read property " " on string here are my approaches in Codeigniter
04:31 25 Dec 2022

here is all MVC code below error to fetch data

controller

public function bid_data()
       {
            $user   = $this->session->userdata('user');
            $id     = $user['id'];
            $this->load->model('GetModel');
            $data['admin'] = $this->GetModel->auction_data($id);
            
            if(!empty($data['admin'])){
           $this->load->view('user/bidData',$data);
            }else{
               $this->session->set_flashdata('no_record','Sorry No record found !!');
              redirect(base_url().'user/UserSubmit');
            }        
         }

im expecting to print data trough row in Array in my views but show error

view

 
          
         sno; ?>
         remove
         win
               
            

model

public function auction_data($id)
        {
              $query = $this->db->get_where('user_bid',['id'=> $id]);
              return $query->row();
           
        }





php codeigniter resultset