summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-09-04 14:57:52 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-09-04 14:57:52 +0200
commit40d1a7684444f6a8eb4cda23d8822f0b258f0c3e (patch)
treef36f3248e80d9a7aef622e9abf78277e193e16e0 /user_guide
parente3f33942387909350d15adb1fa87d926fd5d8d03 (diff)
Fixed incorrectly named variables in the documentation.
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/database/results.html4
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 />
- &nbsp;&nbsp;&nbsp;echo $row->name; // call attributes<br />
- &nbsp;&nbsp;&nbsp;echo $row->reverse_name(); // or methods defined on the 'User' class<br />
+ &nbsp;&nbsp;&nbsp;echo $user->name; // call attributes<br />
+ &nbsp;&nbsp;&nbsp;echo $user->reverse_name(); // or methods defined on the 'User' class<br />
}
</code>