summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/database/active_record.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html
index d1598c555..1fff61b6f 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -130,7 +130,7 @@ foreach ($query->result() as $row)<br />
<p>Identical to the above function except that it permits you to add a "where" clause in the second parameter,
instead of using the db->where() function:</p>
-<code>$query = $this->db->getwhere('mytable', array(id => $id), $limit, $offset);</code>
+<code>$query = $this->db->getwhere('mytable', array('id' => $id), $limit, $offset);</code>
<p>Please read the about the where function below for more information.</p>