doc typos / fixes
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html
index 5fbd3bc..68434d3 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -397,7 +397,7 @@
 <br />

 // Produces: HAVING user_id = 45<br />

 <br />

-$this-&gt;db-&gt;having('user_id',  45'); <br />

+$this-&gt;db-&gt;having('user_id',  45); <br />

 // Produces: HAVING user_id = 45<br />

 <br />

 </code>

@@ -409,10 +409,10 @@
 		<br />

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

 <p>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.</p>

-<p><code>$this-&gt;db-&gt;having('user_id',  45'); <br />

-// Produces: HAVING `user_id` = `45` in some databases such as MySQL

+<p><code>$this-&gt;db-&gt;having('user_id',  45); <br />

+// Produces: HAVING `user_id` = 45 in some databases such as MySQL

 		<br />

-		$this-&gt;db-&gt;having('user_id',  45', FALSE); <br />

+		$this-&gt;db-&gt;having('user_id',  45, FALSE); <br />

 // Produces: HAVING user_id = 45</code></p>

 <h2>$this-&gt;db-&gt;or_having();</h2>

 <p>Identical to having(), only separates multiple clauses with &quot;OR&quot;.</p>

diff --git a/user_guide/database/connecting.html b/user_guide/database/connecting.html
index 79277e5..4a859d1 100644
--- a/user_guide/database/connecting.html
+++ b/user_guide/database/connecting.html
@@ -115,7 +115,7 @@
 

 <code>$dsn = 'dbdriver://username:password@hostname/database';<br />

 <br />

-$this->load->database('<samp>$dsn</samp>');</code>

+$this->load->database(<samp>$dsn</samp>);</code>

 

 <p>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.</p>