Welcome Guest, Not a member yet? Register   Sign In
$this->db->update('page', $data)->where -- Not working
#2

[eluser]mglinski[/eluser]
Your chaining in reverse.
Try this: $this->db->where('id, $id)->update(’page’, $data);

For Refrence: Any db command that inserts, updates or deletes data goes last in a chain, right before you retrieve the result of the query. This should be quite obvious but is often confused for the newbies.
-Matt


Messages In This Thread
$this->db->update('page', $data)->where -- Not working - by El Forum - 06-16-2008, 06:31 PM
$this->db->update('page', $data)->where -- Not working - by El Forum - 06-16-2008, 07:23 PM
$this->db->update('page', $data)->where -- Not working - by El Forum - 06-16-2008, 07:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB