summaryrefslogtreecommitdiffstats
path: root/user_guide/database
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-02-01 00:43:58 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-02-01 00:43:58 +0100
commit445694a64adaf1ee917cdb10fac06c767d333565 (patch)
tree1c59b94c44f4439d1bd365813884826a71b8353b /user_guide/database
parent72c459f5c7886e048e8795280f077b04273711f1 (diff)
typo fix, $this->Db to $this->db
Diffstat (limited to 'user_guide/database')
-rw-r--r--user_guide/database/active_record.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html
index 427389680..5425f013a 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -139,7 +139,7 @@ $query = $this->db->get('mytable');<br />
// Produces: SELECT title, content, date FROM mytable</code></p>
<p class="important"><strong>Note:</strong> If you are selecting all (*) from a table you do not need to use this function. When omitted, CodeIgniter assumes you wish to SELECT *</p>
-<p>$this-&gt;Db-&gt;select() accepts an optional second parameter. If you set it to FALSE, CodeIgniter will not try to protect your field or table names with backticks. This is useful if you need a compound select statement.</p>
+<p>$this-&gt;db-&gt;select() accepts an optional second parameter. If you set it to FALSE, CodeIgniter will not try to protect your field or table names with backticks. This is useful if you need a compound select statement.</p>
<p><code> $this-&gt;db-&gt;select('(SELECT SUM(payments.amount) FROM payments WHERE payments.invoice_id=4') AS amount_paid', FALSE); <br />
$query = $this-&gt;db-&gt;get('mytable');<br />
</code></p>