From cb36e34719bf60904bc7fa39dfbcb0fa86310e66 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Sun, 31 Aug 2008 14:24:56 +0000 Subject: grammar changes --- user_guide/database/queries.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide/database/queries.html') diff --git a/user_guide/database/queries.html b/user_guide/database/queries.html index eb4d13e9d..1411e65db 100644 --- a/user_guide/database/queries.html +++ b/user_guide/database/queries.html @@ -98,7 +98,7 @@ can escape only string data. It also automatically adds single quotes around th $sql = "INSERT INTO table (title) VALUES(".$this->db->escape($title).")";
  • $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: +Most of the time you'll use the above function rather than this one. Use the function like this: $sql = "INSERT INTO table (title) VALUES('".$this->db->escape_str($title)."')";
  • -- cgit v1.2.3-24-g4f1b