Welcome Guest, Not a member yet? Register   Sign In
Active Record method chaining - doesn't work with update?
#2

The update method works like described here

http://www.codeigniter.com/userguide3/da...ght=update

For e.g. in your case you can write this:

$this->db->update('tasks', array('status' => 'complete'), array('id' => $task_id));

Reply


Messages In This Thread
RE: Active Record method chaining - doesn't work with update? - by Rufnex - 02-25-2015, 11:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB