how to upload excel(csv) file to database with php & mysql

preview_player
Показать описание
This video is about how you can upload an excel file to your database with PHP and MySQL database in easy and simple steps.

My blog link & download the source code:
Рекомендации по теме
Комментарии
Автор

Very useful vedio, I liked and subscribed your channel

educator
Автор

really good tutorial and all that but i have a question, how do you import more excel extensions ? such as xlsx, xlx and you answer my question please ? thanks

murtazanoori
Автор

Hi user,
the code told in this video is older now and it works PHP version < =5.2.
here is the source code link that will work on all versions.
the folder contains
1. A database, first import it.
2. Change the config files
3. upload the sample sheet in the folder.
It will work 100%

Source code link


Thanks!

CodingBirdsOnline
Автор

Does this work with .xls or .xlsx files or should it only be saved as csv ? If doesn't work, how can we make it accept xls and xlsx files too?

hhaneya
Автор

Thanks It Works For XAMPP 3.2.2(PHP Version:5.6.32)

yusufnasrul
Автор

What if the excel file will have a top column with label like NAME, EMAIL. how do you handle such situation. Thanks

akinlabiabdulkabeerhabeebu
Автор

How can I upload multile files? I followed the tutorial and I can only upload one file

JIGAup
Автор

Extravagant sir, Thank you for the knowledge you shared...make more and more.

simonkariuki
Автор

dear sir i want to add drop down list in csv file but its not work .i want to know how to upload only excel file .

mytech
Автор

error:---Warning: mysqli_query() expects at least 2 parameters, 1 given in on line 32
plzz sahre the source code link

Kajal_Verma
Автор

Sir can you please share source code of this please...

anitan
Автор

How to upload more files in this and save them in the the same Database?

bushrashourin
Автор

i want to send mail available email id in excel file, so how its possible??

jadejajaypalsinh
Автор

how can i upload image along with this

jincygeorge
Автор

I m getting fatal error at line 2 in comfig file

shrutiparulekar
Автор

show config.php file you dont showen ???

hardikchauhan
Автор

Thanks a lot!, greetings from Bogotá-Colombia!

macropsialberto
Автор

the below is the error am getting sir... Notice: Undefined offset: 1 in on line 135

Fatal error: Uncaught Error: Call to undefined function mysql_query() in Stack trace: #0 {main} thrown in on line 140

simonkariuki
Автор

why does the last data in the csv is the only one that adds in the database? help thanks

iztelc