Take a Microsoft Excel Spreadsheet and import it into a MySQL Database using CSV files and PHPMyAdmin.
A fresh look at technology.
Take a Microsoft Excel Spreadsheet and import it into a MySQL Database using CSV files and PHPMyAdmin.
Powered by Yahoo! Answers
whoah, i thought you’re going to create an sql statement but i was wrong. sleek move! great!
Hello this is zaib,
The video “Import Excel to MySQL Database ” is very nice and easy. Its excellent. Thanks alot.
Hello this is zaib,
The video “Import Excel to MySQL Database ” is very nice and easy. Its excellent. Thanks alot.
THANK YOU SOOOOO MUCH!!!
I was stressing out why my data wouldn’t import, I wasn’t adding the comma so my fields wouldn’t separate lol.
Thanks for the help man seriously.
Thanks a stack for this illustration!!!!! This has been very helpful.
thank you thank you so much..its really helpful!!
thank you very much!!!!!!
Thank you SOOOOO much. This is so much faster and cheaper than purchasing conversion software. Again, thank you.
Awesome
thank you !
Awesome tutorial! Interesting! thank you,
Really great …It was very helpfull to me ….Thanks A lot
Thank you!
thanks a lot. it works fine ….
thanks a lot. it works fine ….
my excel csv file is adding a lot of extra commas at the end causing extra empty fields to be created in my db. How can I fix this? Thanks.
@chungwufeiQ
Check out the PHP filesystem functions in the php documentation
That will probably give you a way to go through the files in the directory and save them as .csv files automatically.
Then connect to database using mysql_connect()
Then open and parse the .csv files using fopen() and fgetcsv()
Then insert each row of csv data into your table with the query. You’ll need to use a while statement
INSERT INTO table_name SET column1_name = ‘value’ … etc
gradebook_import.csv should be your target ^^ nice tutorial, and thx a lot.
Thanks, really helped
i am trying to create a system that would automatically import excel file to mysql… do u have any how should i do it? i don’t want the user to save the excel file to csv, what i want is that the system would choose the file and make it a csv file… can you help me? thanks a lot… anyway this video really gave me a little idea and helped me a lot..
thanks more power
a little mistake you uploaded the first file instead of the new one in which you added _import to the name, in that file you did ereased the headers, but you choosed the one with the headers still there
thanks a lot indeed
you rock
great awesome
this is totally outstanding
man oh god you do rock big time!!!!!!!!!!!!!!!!!!!!!!!!
greaaaaaaaaaaaaaaaaaaaaaaaattt
thanks man, it was great
i can’t access to cPanel how am I going to do??