diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-04-03 13:41:30 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-04-03 13:41:30 +0200 |
commit | bb683e2ac25245b06a03042ed94062b861c21a84 (patch) | |
tree | ad142d88a7faf916f556417745d7a7f9e497abc1 /user_guide | |
parent | 9da4dbc58ccae4f903e8a5c8d464fa00cd850381 (diff) |
getwhere() example typo fixed
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/database/active_record.html | 2 |
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>
|