[eluser]Josssi[/eluser]
hi people,
i am sloving ona problem with update one field in my DB. I need to increase 'stack' in table 'customers' for actually $id adding $sum to currently value in 'stack'. In active record manual i didnt find correct reason, so i tried to write something like below:
function updateStack($id, $sum)
{
$this->db->where('id', $id)
->set('stack', 'stack+'.$sum)
->update('customers');
}
Something gets wrong and i dont know where should be a problem. Can somebody give me an advice how to do it correctly please?