From 04b0cf073484d80fb65c4bc072db9a91fef7040f Mon Sep 17 00:00:00 2001 From: Yoko TAMADA Date: Tue, 1 Nov 2011 23:01:29 +0900 Subject: fix user_guide/database/results.html, unmodified variable '$user' to '$row' --- user_guide/database/results.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide/database/results.html') 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 $query = $this->db->query("SELECT * FROM users;");

- foreach ($query->result('User') as $user)
+ foreach ($query->result('User') as $row)
{
   echo $row->name; // call attributes
   echo $row->reverse_name(); // or methods defined on the 'User' class
-- cgit v1.2.3-24-g4f1b