From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- user_guide/database/utilities.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'user_guide/database/utilities.html') diff --git a/user_guide/database/utilities.html b/user_guide/database/utilities.html index f1692808f..cbc791537 100644 --- a/user_guide/database/utilities.html +++ b/user_guide/database/utilities.html @@ -12,7 +12,7 @@ @@ -193,7 +193,7 @@ if ($result !== FALSE)

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

-

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. +

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:

@@ -204,7 +204,7 @@ $query = $this->db->query("SELECT * FROM mytable");
echo $this->dbutil->csv_from_result($query);
-

The second and third parameters allows you to +

The second and third parameters allows you to set the delimiter and newline character. By default tabs are used as the delimiter and "\n" is used as a new line. Example: @@ -221,7 +221,7 @@ If you need to write the file use the File

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

-

Permits you to generate an XML file from a query result. The first parameter expects a query result object, the second +

Permits you to generate an XML file from a query result. The first parameter expects a query result object, the second may contain an optional array of config parameters. Example:

@@ -251,7 +251,7 @@ If you need to write the file use the File

Note:  This features is only available for MySQL/MySQLi databases.

Note: Due to the limited execution time and memory available to PHP, backing up very large -databases may not be possible. If your database is very large you might need to backup directly from your SQL server +databases may not be possible. If your database is very large you might need to backup directly from your SQL server via the command line, or have your server admin do it for you if you do not have root privileges.

Usage Example

-- cgit v1.2.3-24-g4f1b