summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database/results.rst
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-07-28 11:09:08 +0200
committerAndrey Andreev <narf@devilix.net>2015-07-28 11:09:08 +0200
commit49ea7dbe0a62f4f3447ecb449b3ed0d7d66ce449 (patch)
treeeae88a9c80cda1556a80ef050700bcc163971ff7 /user_guide_src/source/database/results.rst
parentfddbde69043a1623df8231f96a103af306f5e3db (diff)
[ci skip] Remove a redundant example from DB result docs
Diffstat (limited to 'user_guide_src/source/database/results.rst')
-rw-r--r--user_guide_src/source/database/results.rst12
1 files changed, 0 insertions, 12 deletions
diff --git a/user_guide_src/source/database/results.rst b/user_guide_src/source/database/results.rst
index e72d9fa77..6fea7c6be 100644
--- a/user_guide_src/source/database/results.rst
+++ b/user_guide_src/source/database/results.rst
@@ -29,18 +29,6 @@ loop, like this::
The above method is an alias of ``result_object()``.
-If you run queries that might **not** produce a result, you are
-encouraged to test the result first::
-
- $query = $this->db->query("YOUR QUERY");
-
- foreach ($query->result() as $row)
- {
- echo $row->title;
- echo $row->name;
- echo $row->body;
- }
-
You can also pass a string to ``result()`` which represents a class to
instantiate for each result object (note: this class must be loaded)