From 49ea7dbe0a62f4f3447ecb449b3ed0d7d66ce449 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 28 Jul 2015 12:09:08 +0300 Subject: [ci skip] Remove a redundant example from DB result docs --- user_guide_src/source/database/results.rst | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'user_guide_src') 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) -- cgit v1.2.3-24-g4f1b