Welcome Guest, Not a member yet? Register   Sign In
Problem returning database row
#1

[eluser]eokorie[/eluser]
Has something changed in CI database query system?

I have this simple code in my model file:

Code:
function getArticle($id) {
    $this->db->where('id_art',$id);
    $query = $this->db->get('blog_posts');
    return $query->row();
}

When trying to display the result of this query in my view file, I get the following error:

[code]
A PHP Error was encountered

Severity: 4096

Message: Object of class stdClass could not be converted to string

Filename: libraries/Parser.php

Line Number: 101
[/code

Anyone noticing or having the same problem?
#2

[eluser]eokorie[/eluser]
Never mind... seems to be an issue I am having with a setting up partials with a template library.




Theme © iAndrew 2016 - Forum software by © MyBB