webmaster1 Posted February 7, 2009 Share Posted February 7, 2009 Hi All, I've saved a Vista Excel file as CSV. The default list seperator is a comma. When I load it myPHPadmin I get "Invalid field count in CSV input on line 1". In myPHPadmin I have the following default settings: Fields terminated by:; Fields enlosed by:" Fields escaped by:\ Lines terminated by:auto Column names: Can anyone spot where I'm going wrong? (I remember having more export options in XP) Link to comment https://forums.phpfreaks.com/topic/144171-solved-php-basic-help-importing-csv-file-into-myphpadmin/ Share on other sites More sharing options...
bubbasheeko Posted February 7, 2009 Share Posted February 7, 2009 Yes, you said the CSV fields are being separated by a comma. Your PHPMyAdmin configuration shows a semi colon. That would be the one thing that stands out right now. Link to comment https://forums.phpfreaks.com/topic/144171-solved-php-basic-help-importing-csv-file-into-myphpadmin/#findComment-756557 Share on other sites More sharing options...
webmaster1 Posted February 7, 2009 Author Share Posted February 7, 2009 Thanks, that worked. Any ideas why it imports my field headings (i.e. the first row) Can I prevent that through myPHPadmin ? (any other advice or tips with the import part of the interface would be apreciated at this time) Link to comment https://forums.phpfreaks.com/topic/144171-solved-php-basic-help-importing-csv-file-into-myphpadmin/#findComment-756760 Share on other sites More sharing options...
printf Posted February 7, 2009 Share Posted February 7, 2009 partial import (check it), enter (1) in the text box "number of records to skip from start" Link to comment https://forums.phpfreaks.com/topic/144171-solved-php-basic-help-importing-csv-file-into-myphpadmin/#findComment-756765 Share on other sites More sharing options...
webmaster1 Posted February 7, 2009 Author Share Posted February 7, 2009 Excellent! Thanks printf and bubbasheeko! Link to comment https://forums.phpfreaks.com/topic/144171-solved-php-basic-help-importing-csv-file-into-myphpadmin/#findComment-756769 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.