summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/database/examples.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide/database/examples.html b/user_guide/database/examples.html
index 167c98bb3..64ec34739 100644
--- a/user_guide/database/examples.html
+++ b/user_guide/database/examples.html
@@ -150,10 +150,10 @@ echo $row->name;<br />
<code>$query = $this->db->query('SELECT name FROM my_table LIMIT 1');<br />
<br />
$row = $query->row_array();<br />
-echo $row->['name'];<br />
+echo $row['name'];<br />
</code>
-<p>The above <dfn>row_array()</dfn> function returns an <strong>array</strong>. Example: $row->['name']</p>
+<p>The above <dfn>row_array()</dfn> function returns an <strong>array</strong>. Example: $row['name']</p>
<h2>Standard Insert</h2>