summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-02-25 22:43:26 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-02-25 22:43:26 +0100
commitaf368e1f1a776247b10c4ae25d879b6e6afadfe0 (patch)
tree25d726f08fb3cfa1cbd55bc431e4f3f0be4dbf82
parent92e048746c3849dd809e2c47f235b69e02af7e9b (diff)
fixed typo in sample code for protecting identifiers
-rw-r--r--user_guide/database/queries.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide/database/queries.html b/user_guide/database/queries.html
index ba69fedb9..59f7e23b4 100644
--- a/user_guide/database/queries.html
+++ b/user_guide/database/queries.html
@@ -86,7 +86,7 @@ It simply lets you submit a query. Most users will rarely use this function.</p>
// outputs prefix_tablename</code></p>
<h1>Protecting identifiers</h1>
<p>In many databases it is advisable to protect table and field names - for example with backticks in MySQL. Active Record queries are automatically protected, however if you need to manually protect an identifier you can use:</p>
-<p><code>$this-&gt;db-&gt;protect_identifier('table_name');</code></p>
+<p><code>$this-&gt;db-&gt;protect_identifiers('table_name');</code></p>
<h1>Escaping Queries</h1>
<p>It's a very good security practice to escape your data before submitting it into your database.
CodeIgniter has two functions that help you do this:</p>