summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoko TAMADA <tmd45@otegami.jpn.org>2011-11-01 15:01:29 +0100
committerYoko TAMADA <tmd45@otegami.jpn.org>2011-11-01 15:01:29 +0100
commit04b0cf073484d80fb65c4bc072db9a91fef7040f (patch)
treec207f43de1c154fca13e11eafc1c5dfb24c2c56c
parent70eeb93361c4e6a08584fd600d173842e15a4f13 (diff)
fix user_guide/database/results.html, unmodified variable '$user' to '$row'
-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 />