diff options
author | James L Parry <jim_parry@bcit.ca> | 2014-11-25 01:16:40 +0100 |
---|---|---|
committer | James L Parry <jim_parry@bcit.ca> | 2014-11-25 01:16:40 +0100 |
commit | d980e3307b9919b239d4edb307f18c287cac8dd0 (patch) | |
tree | 0e0d9b0e947159638bcfea977c6b47486fcff4a1 /user_guide_src/source/database/queries.rst | |
parent | 3fc30aacd184d7d0ead78d154894412aaea4e577 (diff) |
Database guide update
Updated the queries page, making heading levels consistent with each other.
Signed-off-by:James L Parry <jim_parry@bcit.ca>
Diffstat (limited to 'user_guide_src/source/database/queries.rst')
-rw-r--r-- | user_guide_src/source/database/queries.rst | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/user_guide_src/source/database/queries.rst b/user_guide_src/source/database/queries.rst index 76ff1083f..d775d20c4 100644 --- a/user_guide_src/source/database/queries.rst +++ b/user_guide_src/source/database/queries.rst @@ -2,10 +2,14 @@ Queries ####### -$this->db->query(); -=================== +************ +Query Basics +************ -To submit a query, use the following function:: +Regular Queries +=============== + +To submit a query, use the **query** function:: $this->db->query('YOUR QUERY HERE'); @@ -18,10 +22,11 @@ this:: $query = $this->db->query('YOUR QUERY HERE'); -$this->db->simple_query(); -========================== +Simplified Queries +================== -This is a simplified version of the $this->db->query() method. It DOES +The **simple_query** method is a simplified version of the +$this->db->query() method. It DOES NOT return a database result set, nor does it set the query timer, or compile bind data, or store your query for debugging. It simply lets you submit a query. Most users will rarely use this function. @@ -150,8 +155,7 @@ you. Handling Errors *************** -$this->db->error(); -=================== +**$this->db->error();** If you need to get the last error that has occured, the error() method will return an array containing its code and message. Here's a quick |