Welcome Guest, Not a member yet? Register   Sign In
Having some session issues, and could use a quick hand
#4

[eluser]pistolPete[/eluser]
function set_userdata() expects either a string or an array.
But function update() can return FALSE which is then passed to set_userdata():
Code:
return ($query->num_rows() > 0) ? $query->row_array() : FALSE;

Why do you query the database at all?
You could use:
Code:
(...)
        $this->db->where('id', $form['id']);
        $this->db->update('users', $form);

        return $form;
    }


Messages In This Thread
Having some session issues, and could use a quick hand - by El Forum - 03-15-2009, 01:25 PM
Having some session issues, and could use a quick hand - by El Forum - 03-15-2009, 01:39 PM
Having some session issues, and could use a quick hand - by El Forum - 03-15-2009, 01:50 PM
Having some session issues, and could use a quick hand - by El Forum - 03-15-2009, 01:51 PM
Having some session issues, and could use a quick hand - by El Forum - 03-15-2009, 02:43 PM
Having some session issues, and could use a quick hand - by El Forum - 03-15-2009, 02:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB