I can not seem to get out of this place because of this error.
My model is as follows
public function conf($dados){
$this->db->select('id');
$this->db->where('senha',$dados);
$query = $this->db->get('email');
return $query->row();
}
and my controller looks like this:
public function fim(){
$this->load->model('quest_model');
$this->load->helper('quest');
$data = $this->input->post('senha');
$dados['quest'] = $this->email_model->emailconf($data);
$dados['quest1'] = $this->quest_model->get_quest();
$dados['quest2'] = $this->quest_model->get_quest2();
$dados['ques1'] = $this->quest_model->get_ques();
$dados['ques2'] = $this->quest_model->get_ques2();
$this->load->view('quest/file',$dados);
}
I already changed the $ data for $ data ['p'] for example and did not stop giving this error in the same way.
The error you are giving is the following: A PHP Error was encountered
Severity: 4096
Message: Object of class stdClass could not be converted to string
Filename: quest/file.php
Line Number: 49
I used print_r and it is printing everything right, I can not find the error, if you can help me thank you very much
Thanks to everyone