diff options
author | Derek Jones <derek.jones@ellislab.com> | 2011-10-05 19:24:45 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2011-10-05 19:24:45 +0200 |
commit | 044a5221843cc2d88b936f3e658a1df4bc28cfe2 (patch) | |
tree | 9845376e277aa822c41835c8ca8bc94a4cf23756 /user_guide/database/results.html | |
parent | 47a62548cfdcd5fb6588a2caa92d3b55ac05de6f (diff) | |
parent | d1ecd5cd4ae6ab5d37df9fbda14b93977b9e743c (diff) |
Merge branch 'develop' of github.com:EllisLab/CodeIgniter into develop
Diffstat (limited to 'user_guide/database/results.html')
-rw-r--r-- | user_guide/database/results.html | 4 |
1 files changed, 2 insertions, 2 deletions
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 <br /> foreach ($query->result('User') as $user)<br /> {<br /> - echo $row->name; // call attributes<br /> - echo $row->reverse_name(); // or methods defined on the 'User' class<br /> + echo $user->name; // call attributes<br /> + echo $user->reverse_name(); // or methods defined on the 'User' class<br /> } </code> |