From 3af44c081b07551f2e95f1ca296f524e44a680f9 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Thu, 10 Apr 2008 11:21:21 +0000 Subject: doc typos / fixes --- user_guide/database/active_record.html | 8 ++++---- user_guide/database/connecting.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'user_guide/database') diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html index 5fbd3bc8e..68434d32d 100644 --- a/user_guide/database/active_record.html +++ b/user_guide/database/active_record.html @@ -397,7 +397,7 @@ $this->db->or_not_like('body', 'match');

// Produces: HAVING user_id = 45

-$this->db->having('user_id', 45');
+$this->db->having('user_id', 45);
// Produces: HAVING user_id = 45

@@ -409,10 +409,10 @@ $this->db->having('user_id', 45');

// Produces: HAVING title = 'My Title', id < 45

If you are using a database that CodeIgniter escapes queries for, you can prevent escaping content by passing an optional third argument, and setting it to FALSE.

-

$this->db->having('user_id', 45');
-// Produces: HAVING `user_id` = `45` in some databases such as MySQL +

$this->db->having('user_id', 45);
+// Produces: HAVING `user_id` = 45 in some databases such as MySQL
- $this->db->having('user_id', 45', FALSE);
+ $this->db->having('user_id', 45, FALSE);
// Produces: HAVING user_id = 45

$this->db->or_having();

Identical to having(), only separates multiple clauses with "OR".

diff --git a/user_guide/database/connecting.html b/user_guide/database/connecting.html index 79277e536..4a859d186 100644 --- a/user_guide/database/connecting.html +++ b/user_guide/database/connecting.html @@ -115,7 +115,7 @@ $this->load->database($config);
$dsn = 'dbdriver://username:password@hostname/database';

-$this->load->database('$dsn');
+$this->load->database($dsn);

Note that if you use a DSN you will not be able to specify some of the default values like you can if you use a connection array.

-- cgit v1.2.3-24-g4f1b