Welcome Guest, Not a member yet? Register   Sign In
how to
#2

[eluser]Aken[/eluser]
Use the set() function for that, and make sure to flag the third param as false so it does not auto-escape that part of the query. Adjust as needed.
Code:
$query = $this->db->set('column', 'column + 10', false)
->where('id', $id)
->update('table');


Messages In This Thread
how to - by El Forum - 01-27-2012, 11:20 PM
how to - by El Forum - 01-28-2012, 01:30 AM
how to - by El Forum - 01-28-2012, 05:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB