From 5808346898ec9c602893fc54540958a8c556be29 Mon Sep 17 00:00:00 2001
From: admin
Date: Sun, 24 Sep 2006 17:58:27 +0000
Subject:
---
user_guide/general/changelog.html | 14 +++++++-------
user_guide/general/models.html | 4 ++--
user_guide/general/scaffolding.html | 2 +-
user_guide/general/security.html | 2 +-
user_guide/libraries/database/helpers.html | 15 ---------------
user_guide/libraries/database/results.html | 27 +++++++++++++++++++++++++--
user_guide/scripts/nav.js | 2 +-
7 files changed, 37 insertions(+), 29 deletions(-)
(limited to 'user_guide')
diff --git a/user_guide/general/changelog.html b/user_guide/general/changelog.html
index 7aa778962..b0a46b4f1 100644
--- a/user_guide/general/changelog.html
+++ b/user_guide/general/changelog.html
@@ -106,7 +106,7 @@ Change Log
Added support for % character in URL.
Added the ability to supply full URLs using the anchor() helper function.
Added mode parameter to file_write() helper.
-Added support for changing the port number in the Postgre driver.
+Added support for changing the port number in the Postgre driver.
Moved the list of "allowed URI characters" out of the Router class and into the config file.
Moved the MIME type array out of the Upload class and into its own file in the applications/config/ folder.
Updated the Upload class to allow the upload field name to be set when calling do_upload().
@@ -193,10 +193,10 @@ Change Log
Added the ability to pass objects to the insert() and update() database functions.
This feature enables you to (among other things) use your Model class variables to run queries with. See the Models page for details.
Added the ability to pass objects to the view loading function: $this->load->view('my_view', $object);
-Added getwhere function to Active Record class.
-Added count_all function to Active Record class.
+Added getwhere function to Active Record class.
+Added count_all function to Active Record class.
Added language file for scaffolding and fixed a scaffolding bug that occurs when there are no rows in the specified table.
-Added $this->db->last_query(), which allows you to view your last query that was run.
+Added $this->db->last_query(), which allows you to view your last query that was run.
Added a new mime type to the upload class for better compatibility.
Changed how cache files are read to prevent PHP errors if the cache file contains an XML tag, which PHP wants to interpret as a short tag.
Fixed a bug in a couple of the active record functions (where and orderby).
@@ -213,8 +213,8 @@ This feature enables you to (among other things) use your Models.
Redesigned the database libraries to support additional RDBMs (Postgre, MySQLi, etc.).
-Redesigned the Active Record class to enable more varied types of queries with simpler syntax, and advanced features like JOINs.
-Added a feature to the database class that lets you run custom function calls.
+Redesigned the Active Record class to enable more varied types of queries with simpler syntax, and advanced features like JOINs.
+Added a feature to the database class that lets you run custom function calls.
Added support for private functions in your controllers. Any controller function name that starts with an underscore will not be served by a URI request.
Added the ability to pass your own initialization parameters to your custom core libraries when using $this->load->library()
Added support for running standard query string URLs. These can be optionally enabled in your config file.
@@ -226,7 +226,7 @@ This feature enables you to (among other things) use your found here.
Redesigned how the "CI" super object is referenced, depending on whether PHP 4 or 5 is being run, since PHP 5 allows a more graceful way to manage objects that utilizes a bit less resources.
-Deprecated: $this->db->use_table() has been deprecated. Please read the Active Record page for information.
+Deprecated: $this->db->use_table() has been deprecated. Please read the Active Record page for information.
Deprecated: $this->db->smart_escape_str() has been deprecated. Please use this instead: $this->db->escape()
Fixed a bug in the exception handler which was preventing some PHP errors from showing up.
Fixed a typo in the URI class. $this->total_segment() should be plural: $this->total_segments()
diff --git a/user_guide/general/models.html b/user_guide/general/models.html
index 26b85f67b..71f68bd5c 100644
--- a/user_guide/general/models.html
+++ b/user_guide/general/models.html
@@ -122,7 +122,7 @@ class Blogmodel extends Model {
}
-Note: The functions in the above example use the Active Record database functions.
+Note: The functions in the above example use the Active Record database functions.
@@ -207,7 +207,7 @@ class Blog_controller extends Controller {
When a model is loaded it does NOT connect automatically to your database. The following options for connecting are available to you:
-- You can connect using the standard database methods described here, either from within your Controller class or your Model class.
+- You can connect using the standard database methods described here, either from within your Controller class or your Model class.
- You can tell the model loading function to auto-connect by passing TRUE (boolean) via the third parameter,
and connectivity settings, as defined in your database config file will be used:
diff --git a/user_guide/general/scaffolding.html b/user_guide/general/scaffolding.html
index 80a7c9868..d3408f42b 100644
--- a/user_guide/general/scaffolding.html
+++ b/user_guide/general/scaffolding.html
@@ -95,7 +95,7 @@ will launch the scaffolding interface, so please pick something obscure that no
Enabling Scaffolding
Note: The information on this page assumes you already know how controllers work, and that you have
-a working one available. It also assumes you have configured Code Igniter to auto-connect to your database.
+a working one available. It also assumes you have configured Code Igniter to auto-connect to your database.
If not, the information here won't be very relevant, so you are encouraged to go through those sections first.
Lastly, it assumes you understand what a class constructor is. If not, read the last section of the controllers
page.
diff --git a/user_guide/general/security.html b/user_guide/general/security.html
index f6e276898..f94f02e23 100644
--- a/user_guide/general/security.html
+++ b/user_guide/general/security.html
@@ -131,7 +131,7 @@ your data.
Escape all data before database insertion
Never insert information into your database without escaping it. Please see the section that discusses
-queries for more information.
+queries for more information.
diff --git a/user_guide/libraries/database/helpers.html b/user_guide/libraries/database/helpers.html
index dd05aef4c..0d299c023 100644
--- a/user_guide/libraries/database/helpers.html
+++ b/user_guide/libraries/database/helpers.html
@@ -67,21 +67,6 @@ Query Helpers
Query Helper Functions
-$query->num_rows()
-The number of rows returned by the query. Note: In this example, $query is the variable that the query result object is assigned to:
-
-$query = $this->db->query('SELECT * FROM my_table');
-echo $query->num_rows();
-
-
-$query->num_fields()
-The number of FIELDS returned by the query. Make sure to call the function using your query result object:
-
-$query = $this->db->query('SELECT * FROM my_table');
-echo $query->num_fields();
-
-
-
$this->db->insert_id()
The insert ID number when performing database inserts.
diff --git a/user_guide/libraries/database/results.html b/user_guide/libraries/database/results.html
index 342e7e4b4..b1952db5a 100644
--- a/user_guide/libraries/database/results.html
+++ b/user_guide/libraries/database/results.html
@@ -100,7 +100,7 @@ Query Results
}
}
-
+
result_array()
This function returns the query result as a pure array, or FALSE on failure. Typically you'll use this in a foreach loop, like this:
@@ -114,6 +114,10 @@ Query Results
echo $row['body'];
}
+ result('array')
+
+ Identical to $this->db->result_array().
+
row()
@@ -180,6 +184,25 @@ Query Results
+
Result Helper Functions
+
+
+$query->num_rows()
+The number of rows returned by the query. Note: In this example, $query is the variable that the query result object is assigned to:
+
+$query = $this->db->query('SELECT * FROM my_table');
+echo $query->num_rows();
+
+
+$query->num_fields()
+The number of FIELDS (columns) returned by the query. Make sure to call the function using your query result object:
+
+$query = $this->db->query('SELECT * FROM my_table');
+echo $query->num_fields();
+
+
+
+
@@ -192,7 +215,7 @@ Previous Topic: Queries
·
Top of Page ·
User Guide Home ·
-Next Topic: Active Record Pattern
+Next Topic: Query Helper Functions
Code Igniter · Copyright © 2006 · pMachine, Inc.
diff --git a/user_guide/scripts/nav.js b/user_guide/scripts/nav.js
index 960a6a8b2..acc64eefd 100644
--- a/user_guide/scripts/nav.js
+++ b/user_guide/scripts/nav.js
@@ -65,7 +65,7 @@ function create_menu(basepath)
'Benchmarking Class' +
'Calendaring Class' +
'Config Class' +
- 'Database Class' +
+ 'Database Class' +
'Email Class' +
'Encryption Class' +
'File Uploading Class' +
--
cgit v1.2.3-24-g4f1b