summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-02-01 20:35:54 +0100
committerDerek Allard <derek.allard@ellislab.com>2007-02-01 20:35:54 +0100
commit13a0d736b6678c589afec1864edb0ad0d05a84d3 (patch)
tree93213f129c7ff90f80a57401bd6a439442fabd3a /user_guide
parentc5d887941fac6754972e87979e180cc043c4d0fe (diff)
error in update example fixed
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/database/active_record.html5
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 />