Welcome Guest, Not a member yet? Register   Sign In
Weird query error. Please help :(.
#1

[eluser]Lazos[/eluser]
I have this query in my model. I want to extract the last row but I am getting this error:
Fatal error: Call to a member function last_row() on a non-object in D:\websites\dissertation\application\models\admin\content_model.php on line 54

Why this error is occurred? How can I solve it to get the last row?

Code:
function dbContentOrderMany ($parentid, $orderid) {
        $this->db->select('content_id');
        $this->db->from('my_content');
        $this->db->where("parent_id", $parentid);
        $this->db->order_by('item_order', 'ASC');
        $result = $query->last_row('array');
        if ($result == $orderid) {
            return true;    
        }
    }


Messages In This Thread
Weird query error. Please help :(. - by El Forum - 11-07-2008, 02:02 PM
Weird query error. Please help :(. - by El Forum - 11-07-2008, 02:05 PM
Weird query error. Please help :(. - by El Forum - 11-07-2008, 02:10 PM
Weird query error. Please help :(. - by El Forum - 11-07-2008, 02:21 PM
Weird query error. Please help :(. - by El Forum - 11-07-2008, 02:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB