From 116c3937d7a9ae414f1fa59e23a624f50200f162 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 19 Dec 2007 00:02:29 +0000 Subject: --- user_guide/database/active_record.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide') diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html index aafef33b5..0146941ba 100644 --- a/user_guide/database/active_record.html +++ b/user_guide/database/active_record.html @@ -274,7 +274,7 @@ $this->db->or_where('id >', $id); $names = array('frank', 'Todd', 'James');
$this->db->where_in('username', $names);
// Produces: AND WHERE username IN ('frank', 'Todd', 'James')

-

An optional third parameter can be used to specify if the WHERE statement should be separated with "OR" or "AND" in the event of multiple WHERE calls. The default is "AND".

+

An optional third parameter can be used to specify if the WHERE statement should be separated with "OR" or "AND" in the event of multiple WHERE calls. The default is "AND". They are called with 'and', 'or'.

$names = array('frank', 'Todd', 'James');

$this->db->where('usergroup', '5')
-- cgit v1.2.3-24-g4f1b