Re: Importing CSV files to MySql Db issue.
| From: | Chris | Date: | Mon, 18 Feb 2008 04:53:11 +0000 |
| Subject: | Re: Importing CSV files to MySql Db issue. | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44621@lists.php.net to get a copy of this message | ||
Chris Carter wrote:
I am not using spaces for closing. Every field is tightly packed with comma only. No spaces, no semicolon. The reason I used space is if I use space at least 3 or 4 fields get uploaded but not all. But we can ignore space for now as it happened earlier.Then your issue will be a comma in your data. Header: Company Name, Name #1: Widget Co, Chris #2: Widget Co, New York, Chris #1 will work fine. #2 will be seen as "company name" -> "Widget Co" "Name" -> "New York" Extra data -> "Chris" at the end. Enclose your entries with something (" or ' or ~ or something else that's not going to be in your data). -- Postgresql & php tutorials http://www.designmagick.com/