From d8cd66c50665893c3fd1db1d2a5fc8b2e5bf965c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Mon, 20 Aug 2001 10:22:33 +0000 Subject: [PATCH] fixed some bugs with CSV exportations --- ChangeLog | 8 +++++++- lib.inc.php3 | 34 +++++++++++++++++++++++++++++----- tbl_dump.php3 | 10 ++++++---- tbl_properties.php3 | 4 ++++ 4 files changed, 46 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 33e60c0a6..ab4db0ee6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,12 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-08-20 Loïc Chapeaux + * tbl_properties.php3; tbl_dump.php3; lib.inc.php3; lang/*: fixed some bugs + with CSV exportations and added a Ms Excel CSV specific choice (because + we know Excel does not support in data). Thanks to + François . + 2001-08-19 Olivier Müller * db_readdump.php3: if file contains mutiple queries, only show this line: "Your SQL-query has been executed successfully: The content of your file @@ -40,7 +46,7 @@ $Source$ netscape3) and an other one with netscape 3 thanks to François . * left.php3; lang/*: checks if databases from $cfgServers[1]['only_db'] - exits before displaying them at the left frame and take into account + exists before displaying them at the left frame and take into account the case where there is no usable databases. * Documentation.html: various updates. diff --git a/lib.inc.php3 b/lib.inc.php3 index 14a0dcb8b..3bd8563ec 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -191,7 +191,7 @@ if (!defined('__LIB_INC__')){ else if (isset($cfgServers[$server])) { $cfgServer = $cfgServers[$server]; - // The user can work with only one database + // The user can work with only some databases if (isset($cfgServer['only_db']) && !empty($cfgServer['only_db'])) { if (is_array($cfgServer['only_db'])) { $dblist = $cfgServer['only_db']; @@ -1539,16 +1539,22 @@ var errorMsg2 = ' 0) { @@ -1584,6 +1599,15 @@ var errorMsg2 = ' do the work else { // No csv format -> add some comments at the top - if ($what != 'csv') { + if ($what != 'csv' && $what != 'excel') { $dump_buffer .= '# phpMyAdmin MySQL-Dump' . $crlf . '# version ' . PHPMYADMIN_VERSION . $crlf . '# http://phpwizard.net/phpMyAdmin/' . $crlf @@ -216,7 +218,7 @@ else { // 'csv' case else { $tmp_buffer = ''; - get_table_csv($db, $table, $limit_from, $limit_to, $separator, 'my_csvhandler'); + get_table_csv($db, $table, $limit_from, $limit_to, $separator, $enclosed, 'my_csvhandler'); $dump_buffer .= $tmp_buffer; } // end 'csv case } // end building the dump diff --git a/tbl_properties.php3 b/tbl_properties.php3 index 8f5ce940b..28453f387 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -675,8 +675,12 @@ echo "\n";   
  
+ +   
 :
+         +