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 +- user_guide/libraries/xmlrpc.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'user_guide') 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.

diff --git a/user_guide/libraries/xmlrpc.html b/user_guide/libraries/xmlrpc.html index efd1316e4..8bec465ba 100644 --- a/user_guide/libraries/xmlrpc.html +++ b/user_guide/libraries/xmlrpc.html @@ -290,7 +290,7 @@ $response = array (

Notice that the above array is formatted as a struct. This is the most common data type for responses.

-

As with Requests, a response can be on of the seven data types listed in the Data Types section.

+

As with Requests, a response can be one of the seven data types listed in the Data Types section.

Sending an Error Response

@@ -392,7 +392,7 @@ class Xmlrpc_server extends Controller {

You should now see the message you sent to the server, and its response back to you.

-

The client you created sends a message ("How's is going?") to the server, along with a reqest for the "Greetings" method. +

The client you created sends a message ("How's is going?") to the server, along with a request for the "Greetings" method. The Server receives the request and maps it to the "process" function, where a response is sent back.

-- cgit v1.2.3-24-g4f1b