summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorKyle Farris <kylefarris@gmail.com>2011-09-09 17:11:21 +0200
committerKyle Farris <kylefarris@gmail.com>2011-09-09 17:11:21 +0200
commit8c50c8e960e1549fc6168c60bbf6f179c80db2eb (patch)
tree0ea1670fefcb94084f1371371a10beb2f86b6442 /user_guide
parentbf5fb497ba94964bffc67669e36477558f69b517 (diff)
Documented an un-documented feature, the 'enclosures' parameter, to the documentation for DB Util's result_to_csv() method.
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/database/utilities.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/user_guide/database/utilities.html b/user_guide/database/utilities.html
index 8231c7e78..570e44713 100644
--- a/user_guide/database/utilities.html
+++ b/user_guide/database/utilities.html
@@ -183,14 +183,15 @@ $query = $this->db->query("SELECT * FROM mytable");<br />
echo $this->dbutil->csv_from_result($query);
</code>
-<p>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:</p>
+<p>The second, third, and fourth parameters allow you to
+set the delimiter, newline, enclosure characters, respectively. By default tabs are used as the delimiter, "\n" is used as a new line, and a double-quote is used as the enclosure. Example:</p>
<code>
$delimiter = ",";<br />
$newline = "\r\n";<br />
+$enclosure = '"';<br />
<br />
-echo $this->dbutil->csv_from_result($query, $delimiter, $newline);
+echo $this->dbutil->csv_from_result($query, $delimiter, $newline, $enclosure);
</code>
<p><strong>Important:</strong>&nbsp; This function will NOT write the CSV file for you. It simply creates the CSV layout.