summaryrefslogtreecommitdiffstats
path: root/user_guide/database/queries.html
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-03-18 18:48:06 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-03-18 18:48:06 +0100
commit0ce275533d0707adb2c0263e5a77c10c351f969c (patch)
tree30802a834d3bca9e0590dfb82515d52959127c4c /user_guide/database/queries.html
parent707d0e0f1e0ea922fbe38d8b43f1fb4e2ea001e5 (diff)
html fixes
Diffstat (limited to 'user_guide/database/queries.html')
-rw-r--r--user_guide/database/queries.html2
1 files changed, 0 insertions, 2 deletions
diff --git a/user_guide/database/queries.html b/user_guide/database/queries.html
index 59f7e23b4..e443958e0 100644
--- a/user_guide/database/queries.html
+++ b/user_guide/database/queries.html
@@ -92,13 +92,11 @@ It simply lets you submit a query. Most users will rarely use this function.</p>
CodeIgniter has two functions that help you do this:</p>
<ol>
-</li>
<li><strong>$this->db->escape()</strong> This function determines the data type so that it
can escape only string data. It also automatically adds single quotes around the data so you don't have to:
<code>$sql = "INSERT INTO table (title) VALUES(".$this->db->escape($title).")";</code></li>
-
<li><strong>$this->db->escape_str()</strong> This function escapes the data passed to it, regardless of type.
Most of the time you'll use the above function rather then this one. Use the function like this: