summaryrefslogtreecommitdiffstats
path: root/user_guide/database/active_record.html
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-04-10 13:21:21 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-04-10 13:21:21 +0200
commit3af44c081b07551f2e95f1ca296f524e44a680f9 (patch)
tree35b5b0da34420e0deee8839f7ebc13af69efd4d0 /user_guide/database/active_record.html
parente146ed7ddd607e2b40e4590e0600a4694d43423f (diff)
doc typos / fixes
Diffstat (limited to 'user_guide/database/active_record.html')
-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 5fbd3bc8e..68434d32d 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -397,7 +397,7 @@ $this-&gt;db-&gt;or_not_like('body', 'match'); <br />
<br />
// Produces: HAVING user_id = 45<br />
<br />
-$this-&gt;db-&gt;having('user_id', 45'); <br />
+$this-&gt;db-&gt;having('user_id', 45); <br />
// Produces: HAVING user_id = 45<br />
<br />
</code>
@@ -409,10 +409,10 @@ $this-&gt;db-&gt;having('user_id', 45'); <br />
<br />
// Produces: HAVING title = 'My Title', id < 45</code></p>
<p>If you are using a database that CodeIgniter escapes queries for, you can prevent escaping content by passing an optional third argument, and setting it to FALSE.</p>
-<p><code>$this-&gt;db-&gt;having('user_id', 45'); <br />
-// Produces: HAVING `user_id` = `45` in some databases such as MySQL
+<p><code>$this-&gt;db-&gt;having('user_id', 45); <br />
+// Produces: HAVING `user_id` = 45 in some databases such as MySQL
<br />
- $this-&gt;db-&gt;having('user_id', 45', FALSE); <br />
+ $this-&gt;db-&gt;having('user_id', 45, FALSE); <br />
// Produces: HAVING user_id = 45</code></p>
<h2>$this-&gt;db-&gt;or_having();</h2>
<p>Identical to having(), only separates multiple clauses with &quot;OR&quot;.</p>