[eluser]Ajaxian64[/eluser]
Hi all,
I use Active record for updating record but I can't go beyond on a very simple pattern.
I just would like to achieve for instance adding x to a record.
Something like this in MySql
Code:
Update 'mytable' SET xx = xx + $something WHERE cond1=$cond
But when I write
Code:
$this->db->where('cond1',$cond)->update('mytable',array('xx'=>"xx+$something")
Then I update nothing. When I use MySql statements I do the job
Do you know how to use this Active Record facilities to achieve my stuff?
Thanks