summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database/results.rst
diff options
context:
space:
mode:
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)