From 24dd7e71d2587c4290c85bc85e0e181b29ab0539 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 1 Oct 2006 19:02:29 +0000 Subject: --- user_guide/database/utilities.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'user_guide/database/utilities.html') diff --git a/user_guide/database/utilities.html b/user_guide/database/utilities.html index 3af494482..3efa04f1d 100644 --- a/user_guide/database/utilities.html +++ b/user_guide/database/utilities.html @@ -48,7 +48,7 @@ window.onload = function() { Code Igniter Home  ›  User Guide Home  ›  Database Library  ›  -Database Utilities Class +Database Utility Class
Search User Guide   
@@ -62,28 +62,28 @@ Database Utilities Class
-

Database Utilities Class

+

Database Utility Class

-

The Database Utilities Class contains functions that help you manage your database.

+

The Database Utility Class contains functions that help you manage your database.

Table of Contents

-

Initializing the Utilities Class

+

Initializing the Utility Class

Important:  This class must be initialized independently since it is a separate class from the main Database class. More info below...

@@ -184,10 +184,10 @@ if ($result !== FALSE)

Note: Not all database platforms support table optimization.

- -

$this->dbutil->cvs_from_result($db_result)

+ +

$this->dbutil->csv_from_result($db_result)

-

Permits you to generate a CVS file from a query result. The first parameter of the function must contain the result object from your query. +

Permits you to generate a CSV file from a query result. The first parameter of the function must contain the result object from your query. Example:

@@ -195,7 +195,7 @@ $this->load->dbutil();

$query = $this->db->query("SELECT * FROM mytable");

-echo $this->dbutil->cvs_from_result($query); +echo $this->dbutil->csv_from_result($query);

The second and third parameters allows you to @@ -205,10 +205,10 @@ set the delimiter and newline character. By default tabs are used as the delimi $delimiter = ",";
$newline = "\r\n";

-echo $this->dbutil->cvs_from_result($query, $delimiter, $newline); +echo $this->dbutil->csv_from_result($query, $delimiter, $newline); -

Important:  This function will NOT write the CVS file for you. It simply creates the CVS layout. +

Important:  This function will NOT write the CSV file for you. It simply creates the CSV layout. If you need to write the file use the File Helper.

@@ -230,10 +230,10 @@ $config = array (
                  ';tab'    => "\t"
                );

-echo $this->dbutil->cvs_from_result($query, $config); +echo $this->dbutil->xml_from_result($query, $config); -

Important:  This function will NOT write the CVS file for you. It simply creates the CVS layout. +

Important:  This function will NOT write the XML file for you. It simply creates the XML layout. If you need to write the file use the File Helper.

-- cgit v1.2.3-24-g4f1b