summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsv3tli0 <sfetliooo@gmail.com>2015-03-02 16:22:01 +0100
committersv3tli0 <sfetliooo@gmail.com>2015-03-02 16:22:01 +0100
commitd829a5fe5cd8116f22d757e0aaa8b88d71576aa0 (patch)
treee47b4aeacf99d858449de280e7aaf99bd3352978
parent43ba5a2da25ff1e0af527da92d89063a3f9d4263 (diff)
Small typo
Missed variable..
-rw-r--r--user_guide_src/source/database/results.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/database/results.rst b/user_guide_src/source/database/results.rst
index a22c2e8c3..ac44566d3 100644
--- a/user_guide_src/source/database/results.rst
+++ b/user_guide_src/source/database/results.rst
@@ -102,7 +102,7 @@ You can also add a second String parameter, which is the name of a class
to instantiate the row with::
$query = $this->db->query("SELECT * FROM users LIMIT 1;");
- $query->row(0, 'User');
+ $row = $query->row(0, 'User');
echo $row->name; // access attributes
echo $row->reverse_name(); // or methods defined on the 'User' class
@@ -431,4 +431,4 @@ Class Reference
:rtype: array
Returns an array containing the field names in the
- result set. \ No newline at end of file
+ result set.