From 0ce275533d0707adb2c0263e5a77c10c351f969c Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 18 Mar 2008 17:48:06 +0000 Subject: html fixes --- user_guide/database/queries.html | 2 -- 1 file changed, 2 deletions(-) (limited to 'user_guide/database/queries.html') 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.

CodeIgniter has two functions that help you do this:

    -
  1. $this->db->escape() 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: $sql = "INSERT INTO table (title) VALUES(".$this->db->escape($title).")";
  2. -
  3. $this->db->escape_str() 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: -- cgit v1.2.3-24-g4f1b