summaryrefslogtreecommitdiffstats
path: root/user_guide/database
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-06-26 18:34:46 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-06-26 18:34:46 +0200
commit7f4d2f1f67bdab32137ecc2cc827158d7770980b (patch)
tree7cfa14cfc3f1adfb3cbce08145d456d7f1fddc39 /user_guide/database
parent49ccc2327086fbb7d9736d98eabc1f6d1d853547 (diff)
fix up where_in examples
Diffstat (limited to 'user_guide/database')
-rw-r--r--user_guide/database/active_record.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html
index aaee21e97..a42f9c03f 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -282,28 +282,28 @@ $this->db->or_where('id >', $id);
<p><code>
$names = array('Frank', 'Todd', 'James');<br />
$this->db->where_in('username', $names);<br />
- // Produces: AND WHERE username IN ('Frank', 'Todd', 'James')</code></p>
+ // Produces: WHERE username IN ('Frank', 'Todd', 'James')</code></p>
<h2>$this->db->or_where_in();</h2>
<p>Generates a WHERE field IN ('item', 'item') SQL query joined with OR if appropriate</p>
<p><code>
$names = array('Frank', 'Todd', 'James');<br />
$this->db->or_where_in('username', $names);<br />
- // Produces: OR WHERE username IN ('Frank', 'Todd', 'James')</code></p>
+ // Produces: OR username IN ('Frank', 'Todd', 'James')</code></p>
<h2>$this->db->where_not_in();</h2>
<p>Generates a WHERE field NOT IN ('item', 'item') SQL query joined with AND if appropriate</p>
<p><code>
$names = array('Frank', 'Todd', 'James');<br />
$this->db->where_not_in('username', $names);<br />
- // Produces: AND WHERE username NOT IN ('Frank', 'Todd', 'James')</code></p>
+ // Produces: WHERE username NOT IN ('Frank', 'Todd', 'James')</code></p>
<h2>$this->db->or_where_not_in();</h2>
<p>Generates a WHERE field NOT IN ('item', 'item') SQL query joined with OR if appropriate</p>
<p><code>
$names = array('Frank', 'Todd', 'James');<br />
$this->db->or_where_not_in('username', $names);<br />
- // Produces: OR WHERE username NOT IN ('Frank', 'Todd', 'James')</code></p>
+ // Produces: OR username NOT IN ('Frank', 'Todd', 'James')</code></p>
<h2>$this->db->like();</h2>
<p>This function enables you to generate <strong>LIKE</strong> clauses, useful for doing searches.</p>