Welcome Guest, Not a member yet? Register   Sign In
REACTOR $this->db->set() not working in update
#2

[eluser]LuckyFella73[/eluser]
The user guide says nothing about using "SET" when updating.
Don't know if it should work like that.

Just try this:
Code:
$data = array(
    'field' => $your_data
);

$this->db->where('id', $id);
$this->db->update('table', $data);

assuming $your_data (in your example '$data') is a variable and no array


EDIT: re reading the User Guide I see that you can use "SET" as well ..

If that code doesn't work please provide more of your code


Messages In This Thread
REACTOR $this->db->set() not working in update - by El Forum - 02-10-2011, 06:03 AM
REACTOR $this->db->set() not working in update - by El Forum - 02-10-2011, 09:12 AM
REACTOR $this->db->set() not working in update - by El Forum - 02-10-2011, 10:18 AM
REACTOR $this->db->set() not working in update - by El Forum - 02-10-2011, 10:41 AM
REACTOR $this->db->set() not working in update - by El Forum - 02-10-2011, 11:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB