From e1c29d2b6e1958890c3dcdf387c9b1dddb9493c5 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 3 Apr 2007 20:31:07 +0000 Subject: example fix --- user_guide/database/examples.html | 4 ++-- 1 file 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;
$query = $this->db->query('SELECT name FROM my_table LIMIT 1');

$row = $query->row_array();
-echo $row->['name'];
+echo $row['name'];
-

The above row_array() function returns an array. Example: $row->['name']

+

The above row_array() function returns an array. Example: $row['name']

Standard Insert

-- cgit v1.2.3-24-g4f1b