From 3af44c081b07551f2e95f1ca296f524e44a680f9 Mon Sep 17 00:00:00 2001
From: Derek Allard
// 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.
-Identical to having(), only separates multiple clauses with "OR".$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();
$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