ActiveRecord class question |
[eluser]i_am_using_ci[/eluser]
Hi, I wanted to ask is there any way to do query like: Code: update table set field = filed + 1 where id = 1 I am always getting Code: update table set field = 'field + 1' where id = 1 when doing: Code: $this->db->where('id', 1);
[eluser]Dam1an[/eluser]
See the part on set in the AR user guide Set accepts a 3rd parameter to prevent escaping things like this
|
Welcome Guest, Not a member yet? Register Sign In |