How to Import Data from Excel/CSV File into MySql DB in PHP using PhpSpreadsheet | Insert & Update

Sdílet
Vložit
  • čas přidán 16. 01. 2021
  • In this video, i have taught about How to Import Data from Excel or CSV File to Mysqli in PHP using PhpSpreadsheet where we are inserting data and if record already exists means will be updated into database.
    Import Excel Sheet data to Database in PHP using Phpspreadsheet
    • How to Import Data fro...
    Export Data from Database to Excel Sheet in PHP using Phpspreadsheet
    • How to Export data fro...
    Php Spreadsheet's Link
    phpspreadsheet.readthedocs.io...
    Follow us on Instagram:
    / funda_of_web_it
    Website: fundaofwebit.com/

Komentáře • 63

  • @mdjabedbhuiyan
    @mdjabedbhuiyan Před 3 lety +1

    I complete your all play list tutorial of funda of web it english.

  • @ngongo934
    @ngongo934 Před 2 lety +2

    i am from VietNam and i thank you so much

  • @mdjabedbhuiyan
    @mdjabedbhuiyan Před 3 lety +1

    Thanks for create my required tutorial.

  • @Shopnomoi
    @Shopnomoi Před rokem

    Hi, very good tutorial
    I would like to insert multiple tables from the csv fie
    Like some data insert table one, other data insert table 2
    how to do that, Could help me?

  • @margaretkanganga4882
    @margaretkanganga4882 Před rokem


    Hi, very good tutorial

  • @mdjabedbhuiyan
    @mdjabedbhuiyan Před 3 lety +3

    Your tutorial is so easy to understand. Thanks

    • @webeloperuz1669
      @webeloperuz1669 Před 2 lety

      i don't know indian language this is video very hard for me

    • @FundaofWebITHindi
      @FundaofWebITHindi  Před 2 lety

      You can try with english language:
      czcams.com/video/LX5KiK7pBmE/video.html

  • @mdjabedbhuiyan
    @mdjabedbhuiyan Před 3 lety

    You are real hero. Thanks

  • @trinhthanhhiep9195
    @trinhthanhhiep9195 Před 3 lety

    What version of xampp are you using?

  • @1149binu
    @1149binu Před 3 lety

    Sir,If the excel have 2000rows will it work?

  • @pratikbhuva4346
    @pratikbhuva4346 Před 3 lety

    Thanks. very easy to understand. how to start reading from second row? as excel files may have headers

    • @kushgada2133
      @kushgada2133 Před 3 lety

      Did you get to know how to do that ? If yes please guide me

  • @oumasstabdallah3424
    @oumasstabdallah3424 Před rokem

    Thank you brother. you did will actually

  • @msa_1439
    @msa_1439 Před 2 lety +1

    hello Bro I am From #Somaliland, English Version of This Lecture is Very Important Please Could you do it for us, please???

  • @johnroninocarpio6239
    @johnroninocarpio6239 Před 2 lety

    is the data will not showing up in the main homepage of the website?

  • @akila9168
    @akila9168 Před 2 lety

    I have product excel data along with images. How to import images from an excel file?

  • @wplearners8480
    @wplearners8480 Před 4 měsíci

    that's very nice but how can we handle date cell in php?

  • @franklingonzalezsierra217

    Hola, no me funciona. Me puede compartir el código?

  • @StatusWorld-pz8ld
    @StatusWorld-pz8ld Před rokem

    Sir after installing pho spreadsheet its redirecting to index.php if i remove spreadsheet files its works properly, can i know how to fix it

  • @bejoapp
    @bejoapp Před 3 lety

    Can you share the source remover?

  • @smarter_by_bit9346
    @smarter_by_bit9346 Před 2 lety

    aap to mano bhagvaan kaa rup hi ho.......shukriyaa bhai

  • @VishwasKale51
    @VishwasKale51 Před rokem

    xls file format not getting upload, it displaying special char in DB

  • @surajopagrahari877
    @surajopagrahari877 Před 3 lety

    How to increase limit data import. actually we have face a problem it's only 2000 data import but we want more thousands data import how could possible this ?

  • @the_power_ride
    @the_power_ride Před 2 lety

    Isme index.php file ka. Code kahan se le. Skte hn.... Please reply?

  • @snehadutta2664
    @snehadutta2664 Před 3 lety

    how to download composer

  • @neeraj0511
    @neeraj0511 Před 2 lety

    hello sir
    composer install krne ke bad v link se vendor folder create nhi ho rha h
    sir, kia krna hoga plz help
    sir plz share mail Id for ask Question.

  • @ashinsiby2814
    @ashinsiby2814 Před 2 lety

    How to install composer??

  • @bibhanshuyadav
    @bibhanshuyadav Před rokem

    I am getting some error like this:
    Undefined type of phpspreadsheet\IOFactory....
    Need help

  • @ashishnath9121
    @ashishnath9121 Před 2 lety

    How to create table instead of insert or update here?

  • @swapnilpatil4994
    @swapnilpatil4994 Před 2 lety

    How give mobile validation in import

  • @trinhthanhhiep9195
    @trinhthanhhiep9195 Před 3 lety

    Your requirements could not be resolved to an installable set of packages.
    Problem 1
    - Root composer.json requires phpoffice/phpspreadsheet ^1.18 -> satisfiable by phpoffice/phpspreadsheet[1.18.0].
    - phpoffice/phpspreadsheet 1.18.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
    To enable extensions, verify that they are enabled in your .ini files:
    - C:\xampp\php\php.ini
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
    Installation failed, deleting ./composer.json.
    can you help me? please!

  • @denchaisingmahan
    @denchaisingmahan Před 3 lety

    How to Import Data from PDF and Word

  • @ammar-techprofessionalserv4423

    Please I need the source code for study

  • @rajeshtewari6059
    @rajeshtewari6059 Před 2 lety

    How to import date from excel

  • @debashishbasu1505
    @debashishbasu1505 Před 2 lety

    how to remove excel header??

  • @Edhimanafactguru
    @Edhimanafactguru Před 5 měsíci

    if you that code with you please share it guys

  • @mdjabedbhuiyan
    @mdjabedbhuiyan Před 3 lety

    I want to import some student data from csv file but some row column field select form select option. If see an video tutorial. Thanks

    • @FundaofWebITHindi
      @FundaofWebITHindi  Před 3 lety +1

      If you have any suggestion, please do let me know.

    • @mdjabedbhuiyan
      @mdjabedbhuiyan Před 3 lety

      Branch option, shift option, version option, session option, group option, class oprion, section option, student type option, those option value take from html form and other some info take csv file. How can i import multiple row in mysqli database. Thanks

    • @FundaofWebITHindi
      @FundaofWebITHindi  Před 3 lety

      Can you be little more clear. What is required with small explanation as example.

  • @enotechworld112
    @enotechworld112 Před 2 lety

    Fatal error: Uncaught Error: Class "PhpOffice\PhpSpreadsheet\IOFactory" not found in D:\xampp\htdocs\excel_project\upload_sheet.php:19 Stack trace: #0 {main} thrown in D:\xampp\htdocs\excel_project\upload_sheet.php on line 19
    how to fix this error?

  • @markevantorremocha2664

    file of the code pleaseee i really want this

  • @debashishbasu1505
    @debashishbasu1505 Před 2 lety

    Undefined index: file

  • @nishantnagdeve5431
    @nishantnagdeve5431 Před 3 lety

    i want to ignore first row of excel sheet..

  • @shreeharshpandey1055
    @shreeharshpandey1055 Před 2 lety +1

    Sir, when I am clicking on submit button it's redirecting to code.php page but over there no data is visible and data is not being imported too in the database.(No error is showing on the page of code.php)

    • @almosawi32
      @almosawi32 Před 2 lety

      Fatal error: Uncaught Error: Class 'PhpOffice\PhpSpreadsheet\IOFactory ... return nothing because not correct composer, php zip extension installed in your server

  • @msa_1439
    @msa_1439 Před 2 lety +1

    How to Skip Header from Excel Spreadsheet While Uploading to MySQL

    • @santoshkp9254
      @santoshkp9254 Před 2 lety +2

      You can just use a variable i to iterate over all the rows and then use a condition if i==0 then continue; this will skip your header row hopefully.

    • @debashishbasu1505
      @debashishbasu1505 Před 2 lety

      @@santoshkp9254 please share code

    • @santoshkp9254
      @santoshkp9254 Před 2 lety +2

      @@debashishbasu1505 I would have provided you the code but it very simple you just have to use if($i==0) { continue; } this would surely do the work.

    • @debashishbasu1505
      @debashishbasu1505 Před 2 lety

      @@santoshkp9254 where it's put this code
      After foreach??

    • @santoshkp9254
      @santoshkp9254 Před 2 lety

      @@debashishbasu1505 just after your loop. Like
      foreach(your expression){
      if($i==0){ continue; }
      // then wrtite all your logic
      }

  • @debashishbasu1505
    @debashishbasu1505 Před 2 lety

    i want to ignore first row of excel sheet..