summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database
diff options
context:
space:
mode:
authorMaster Yoda <jim_parry@bcit.ca>2017-07-20 13:58:16 +0200
committerMaster Yoda <jim_parry@bcit.ca>2017-07-20 13:58:16 +0200
commit30f15f9317b5df49ebe880a423a317b045a495eb (patch)
tree50c2c9027a25734eb0b2ab43127a397ae9762fe4 /user_guide_src/source/database
parentf107a186f0ddd5695c142c3202106bea4cd4b226 (diff)
Fix some mistakes in the user guide
Diffstat (limited to 'user_guide_src/source/database')
-rw-r--r--user_guide_src/source/database/query_builder.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide_src/source/database/query_builder.rst b/user_guide_src/source/database/query_builder.rst
index 2d954c7a8..7c1bd4cc0 100644
--- a/user_guide_src/source/database/query_builder.rst
+++ b/user_guide_src/source/database/query_builder.rst
@@ -119,7 +119,7 @@ escaping of fields may break them.
::
- $this->db->select('(SELECT SUM(payments.amount) FROM payments WHERE payments.invoice_id=4') AS amount_paid', FALSE);
+ $this->db->select('(SELECT SUM(payments.amount) FROM payments WHERE payments.invoice_id=4) AS amount_paid', FALSE);
$query = $this->db->get('mytable');
**$this->db->select_max()**