[eluser]chobo[/eluser]
I'm trying to send my database query results to a view, but I keep getting the following error when it hit this line.
Code:
$search['results'] = $this->user->getSearchResults($search);
Error: Object of class CI_DB_mysqli_result could not be converted to string
I'm trying to follow and learn from the Bamboref I downloaded, which does pretty much the same thing, but uses the db active record stuff, and it works.
Code:
$data['query'] = $this->db->get('clients');
Does the get convert the result to a string? How come that works, but not using the active record doesn't? Any help is appreciated, thanks.