I have the following php-codeigniter script which attempts to increment a field of a record using active-record syntax:
$data = array(\'votes\' => \'(vote
$data = array('votes' => 'votes + 1'); foreach ($data as $key=>$val) { $this->db->set($key, $val, FALSE); } $this->db->where('id', $post['identifier']); $this->db->update('users', $data);