diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-02-01 20:35:54 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-02-01 20:35:54 +0100 |
commit | 13a0d736b6678c589afec1864edb0ad0d05a84d3 (patch) | |
tree | 93213f129c7ff90f80a57401bd6a439442fabd3a /user_guide | |
parent | c5d887941fac6754972e87979e180cc043c4d0fe (diff) |
error in update example fixed
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/database/active_record.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html index 6f842f47e..087d3e1ff 100644 --- a/user_guide/database/active_record.html +++ b/user_guide/database/active_record.html @@ -525,8 +525,9 @@ $this->db->update('mytable', $data); $object = new Myclass;<br />
<br />
$this->db->where('id', $id);<br />
-$this->db->update('mytable', $object, $where);
-<br /><br />
+$this->db->update('mytable', $object);
+<br />
+<br />
// Produces:<br />
// UPDATE mytable <br />
// SET title = '{$title}', name = '{$name}', date = '{$date}'<br />
|