Welcome Guest, Not a member yet? Register   Sign In
Active Record method chaining syntax
#1

[eluser]DrDave[/eluser]
Can someone tell me the correct syntax for chaining an active record update statement, or where I can find examples? I want to chain this just to get a handle on how chaining works:

Code:
$data = array( 'user_color' => 'blue' );
$this->db->where('user_id', $user_id);
$this->db->update('user', $data);

Thanks!


Messages In This Thread
Active Record method chaining syntax - by El Forum - 05-23-2011, 02:03 PM
Active Record method chaining syntax - by El Forum - 05-23-2011, 02:49 PM
Active Record method chaining syntax - by El Forum - 05-23-2011, 03:24 PM
Active Record method chaining syntax - by El Forum - 05-23-2011, 03:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB