Welcome Guest, Not a member yet? Register   Sign In
Trying to pass variable from 1 Function to Another to Put in Array within same Model
#2

[eluser]zimco[/eluser]
Looks like you wanted to return an array from your model but instead you have returned an object then tried to use it as an array. I usually do something like this in my model if i want to return an array:
Code:
$query = $this->db->get();
    if ($query->num_rows() > 0) {
        return $query->result_array();
    }


Messages In This Thread
Trying to pass variable from 1 Function to Another to Put in Array within same Model - by El Forum - 05-24-2010, 12:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB