From 08488e8ec1ae0a0519b914459becdade7b004a09 Mon Sep 17 00:00:00 2001 From: purandi Date: Sun, 4 Sep 2011 20:15:15 +0700 Subject: Fix issue #378 --- user_guide/database/results.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user_guide/database') diff --git a/user_guide/database/results.html b/user_guide/database/results.html index ec5f97762..a47e335cb 100644 --- a/user_guide/database/results.html +++ b/user_guide/database/results.html @@ -105,8 +105,8 @@ Query Results
foreach ($query->result('User') as $user)
{
-    echo $row->name; // call attributes
-    echo $row->reverse_name(); // or methods defined on the 'User' class
+    echo $user->name; // call attributes
+    echo $user->reverse_name(); // or methods defined on the 'User' class
} -- cgit v1.2.3-24-g4f1b