summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-04-03 13:41:30 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-04-03 13:41:30 +0200
commitbb683e2ac25245b06a03042ed94062b861c21a84 (patch)
treead142d88a7faf916f556417745d7a7f9e497abc1 /user_guide
parent9da4dbc58ccae4f903e8a5c8d464fa00cd850381 (diff)
getwhere() example typo fixed
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>