views:

128

answers:

1

I have an speadsheet file contains some data such as ID, name, lastname. Can I import excel file to phpmyadmin (SQL)? How to do it?

A: 

Export the spreadsheet as CSV first, then import as CSV.

Ignacio Vazquez-Abrams
I do it but it doesn't work for me.
Giffary
... And you honestly expect us to figure out what the problem is with "doesn't work"?
Ignacio Vazquez-Abrams
It show me "Invalid field count in CSV input on line 1."
Giffary
Did you look in the file to see if that's true?
Ignacio Vazquez-Abrams
I my file, I have two column (ID, name). And in phpmyadmin I build table 'test' that have two column (ID, name) too.When I import .CSV file to phpmysql it show 'Invalid field count in CSV input on line 1.'
Giffary
Maybe the name contains an unescaped comma? Or you've got your separators mixed up (ie. different separators in the file and in the import settings)?
Lex