summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2011-11-01 15:09:59 +0100
committerGreg Aker <greg@gregaker.net>2011-11-01 15:09:59 +0100
commited8d8158230d612347defaf4f56675e1c8c7602a (patch)
treec207f43de1c154fca13e11eafc1c5dfb24c2c56c
parent70eeb93361c4e6a08584fd600d173842e15a4f13 (diff)
parent04b0cf073484d80fb65c4bc072db9a91fef7040f (diff)
Merge pull request #640 from tmd45/release/2.1.0
fixed user_guide/database/results.html in Release/2.1.0
-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 />