From bb683e2ac25245b06a03042ed94062b861c21a84 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 3 Apr 2007 11:41:30 +0000 Subject: getwhere() example typo fixed --- user_guide/database/active_record.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide/database/active_record.html') 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)

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:

-$query = $this->db->getwhere('mytable', array(id => $id), $limit, $offset); +$query = $this->db->getwhere('mytable', array('id' => $id), $limit, $offset);

Please read the about the where function below for more information.

-- cgit v1.2.3-24-g4f1b