summaryrefslogtreecommitdiffstats
path: root/user_guide/database/results.html
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-11-02 10:49:23 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-11-02 10:49:23 +0100
commitec58ace846cd89587e8e3dbd404192bcbf96e1c2 (patch)
tree58ae991651541f147ef8d08a80d394a75cd05887 /user_guide/database/results.html
parent2c7e01dc7a26629b1e8447c54b49d55295bb3cc9 (diff)
parented8d8158230d612347defaf4f56675e1c8c7602a (diff)
Merge branch 'release/2.1.0' of github.com:EllisLab/CodeIgniter into release/2.1.0
Diffstat (limited to 'user_guide/database/results.html')
-rw-r--r--user_guide/database/results.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide/database/results.html b/user_guide/database/results.html
index a6b85d8c4..0baf992fb 100644
--- a/user_guide/database/results.html
+++ b/user_guide/database/results.html
@@ -103,7 +103,7 @@ Query Results
<code>
$query = $this->db->query("SELECT * FROM users;");<br />
<br />
- foreach ($query->result('User') as $user)<br />
+ foreach ($query->result('User') as $row)<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 />