Import CSV to MySQL using PHP | Display Imported Data

Sdílet
Vložit
  • čas přidán 9. 04. 2020
  • Hey Guys What up!
    In this video, you can find how to import the data from the csv into the mysql databasse using php language. So, we will upload the csv and then read all the data from the csv and store that data into database using PHP. Then we will go to the step 2 of this video i.e. we will read the imported or we can say uploaded data from the database and then display it on the webpage. We will again use PHP for this.
    Hope it Helps!
    ‪@CodeFlix12‬
    For more about these videos, subscribe to my channel CodeFlix.
    Link: bit.ly/CodeFlix
    BE MY 'THE PATREON' and enjoy some exciting benefits and custom help in you projects or development practices : / codeflix
    Watch My Other Playlists:
    PHP: bit.ly/2PslVTs
    NODEJS : Nodejs From Basics to Advance: bit.ly/2ZrJMXX
    Html & Css | Awesome Stuff: bit.ly/2MM5BLe
    One Minute Code: bit.ly/2ZFo8ei
    GIT Basics for Beginners: bit.ly/2Ruf0s4
    Also If you want updated projects and codes follow :
    Github(Codeflix12) : bit.ly/2po5Gup
    Telegram Channel: CodeFlix
    // import csv to mysql
    // import csv to mysql php
    // import csv php mysql

Komentáře • 55

  • @wandersongomes8405
    @wandersongomes8405 Před rokem

    Muitissimo obrigado. Era exatamente isto que eu estava procurando. Valeu irmão.

  • @user-fg8tz9jc7s
    @user-fg8tz9jc7s Před rokem

    It was a great video. I learned a lot.

  • @AaronEstebanSEO
    @AaronEstebanSEO Před 2 lety

    AWESOME! IT WORKED! THANK YOU SO MUCH!

  • @HappyArif
    @HappyArif Před 4 lety

    awesome tuts :). Keep it up bro

    • @CodeFlix12
      @CodeFlix12  Před 4 lety

      Thanks bro❤️❤️

    • @HappyArif
      @HappyArif Před 4 lety

      @@CodeFlix12 Hi, bro i troubling with a small issue, After upload csv file special character not supporting what i should to do bro!. the text come in like this
      S�ren Bager AS
      but i import Øst-Finnmark tingrett this type of text please give me solution

  • @sherenreginapingkan5355

    how about the csv file size is 60 mb and has 60k rows? Which code should be changed?

  • @sulemanmughal5397
    @sulemanmughal5397 Před 2 lety

    is there anyway that column automatically adjust to the csv file in the database while uploading

  • @DNSQi
    @DNSQi Před 3 lety

    which code editor are you using? I've been using notepad++ which seems to lack some features.

  • @edwinsanchez7960
    @edwinsanchez7960 Před 3 lety +2

    Muy fácil, espero me salga igual.

  • @abegailgraceulanday8830
    @abegailgraceulanday8830 Před 3 lety +2

    does your CSV file contains the table column names?

  • @yogeswaranyogakrishanthi4451

    i got an error as Undefined index: file

  • @opbrclips7637
    @opbrclips7637 Před rokem

    where's the code for the button choose file?

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

    can u drop the csv file structure?

  • @mugiwara5529
    @mugiwara5529 Před 3 lety

    I try to copy all codes but didn't work on my scratch, always echoing "Problem in importing csv"

  • @bhaviksumera
    @bhaviksumera Před 3 lety

    Problem : Only 0th row i'm getting in array but other rows are missing...

    • @CodeFlix12
      @CodeFlix12  Před 3 lety

      Then you might not be reading it from file

  • @zqw9358
    @zqw9358 Před 3 lety

    2.51 what did you do there on line 13? with that comma
    because i have a error: Parse error: syntax error, unexpected ';'
    otherwise you can comment the code on line 13 below thnx!

    • @CodeFlix12
      @CodeFlix12  Před 3 lety

      Hey Sir, the ';' is necessary, you might be missing a double quote in that line somewhere, and that's why you are getting error!

  • @danvallesfin8516
    @danvallesfin8516 Před 3 lety

    Hi CodeFlix - I've got this error "Warning: Undefined array key "temp_name". May I know where is this "temp_name"

    • @CodeFlix12
      @CodeFlix12  Před 3 lety

      Just control + f on code and you will find it

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

      @@CodeFlix12 Yes, I see there is only [tem_name]. Did you declare this array? because I can't find it.

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

      @@CodeFlix12 Sorry it's my bad, it should be tmp_name not temp_name. Thanks a lot it work now.

    • @CodeFlix12
      @CodeFlix12  Před 3 lety

      Happens with me too🙌

    • @hofas2007
      @hofas2007 Před 3 lety

      @@danvallesfin8516 :) same error LOL...

  • @vidyashreehs172
    @vidyashreehs172 Před 3 lety

    problem: Undefined array key "file"
    Warning: Trying to access array offset on value of type null line 6

  • @likki1607
    @likki1607 Před 3 lety

    Sir....I have got error
    This while loop is not getting terminated

  • @zqw9358
    @zqw9358 Před 3 lety

    i hope you react soon bro

  • @AmirKhan-tz1yy
    @AmirKhan-tz1yy Před 3 lety

    can I get this code?

  • @fadouabouchtat5047
    @fadouabouchtat5047 Před 3 lety

    Can i get the code please