summaryrefslogtreecommitdiffstats
path: root/user_guide/database/helpers.html
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-03-25 23:27:37 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-03-25 23:27:37 +0100
commit44bd10fa25c980737e7f2a731aefb46095b1f569 (patch)
treec52bd761085ff712b34f60e6225123153253a262 /user_guide/database/helpers.html
parent8597ca78541b49526da50ca5a2f2ca8bcdba9f8f (diff)
userguide note, corrections and omissions
Diffstat (limited to 'user_guide/database/helpers.html')
-rw-r--r--user_guide/database/helpers.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide/database/helpers.html b/user_guide/database/helpers.html
index 409660e2a..b3dab62d7 100644
--- a/user_guide/database/helpers.html
+++ b/user_guide/database/helpers.html
@@ -126,8 +126,8 @@ $where = "author_id = 1 AND status = 'active'";
$str = $this->db->update_string('table_name', $data, $where);
</code>
-<p>The first parameter is the table name, the second is an associative array with the data to be inserted, and the third parameter is the "where" clause. The above example produces:</p>
-<code> UPDATE exp_weblog SET name = 'Rick', email = 'rick@your-site.com', url = 'www.your-site.com' WHERE author_id = 1 AND status = 'active'</code>
+<p>The first parameter is the table name, the second is an associative array with the data to be updated, and the third parameter is the "where" clause. The above example produces:</p>
+<code> UPDATE table_name SET name = 'Rick', email = 'rick@your-site.com', url = 'www.your-site.com' WHERE author_id = 1 AND status = 'active'</code>
<p class="important">Note: Values are automatically escaped, producing safer queries.</p>