summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries/database
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/libraries/database')
-rw-r--r--user_guide/libraries/database/active_record.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide/libraries/database/active_record.html b/user_guide/libraries/database/active_record.html
index 8fc3b8131..6e5d6126a 100644
--- a/user_guide/libraries/database/active_record.html
+++ b/user_guide/libraries/database/active_record.html
@@ -557,7 +557,7 @@ You can optionally pass this information directly into the update function as a
<p>Generates a delete SQL string and runs the query.</p>
<code>
-$this->db->delete('mytable', array('id', $id));
+$this->db->delete('mytable', array('id' => $id));
<br /><br />
// Produces:<br />
// DELETE FROM mytable <br />