[eluser]RaiNnTeaRs[/eluser]
hi all, how to get the old data value for updating records
for example,like in sql syntax
field = :old.field+1
how to do that in CI ?
This is my code, but it doesnt seem to work
$updatedata = array
(
'no_urut' => 'no_urut'+1,
);
$this->db->from('dforum');
$this->db->where('dforum.no_urut','<'.$cek2);
$this->db->where('dforum.topic_id',$id2);
$this->db->update('dforum',$updatedata);
Thx