How to Import Excel File in Codeigniter

Поділитися
Вставка
  • Опубліковано 11 лис 2024

КОМЕНТАРІ • 69

  • @arohiwahi8220
    @arohiwahi8220 Рік тому

    excuess me their as issue of duplicate key error can you tell me the solution for it

  • @patrickmaine7778
    @patrickmaine7778 3 роки тому +1

    how to update only the existing row with same id in import?

  • @robyortega6147
    @robyortega6147 2 роки тому

    can make how skipp if row value empty please

  • @venkyammu9145
    @venkyammu9145 2 роки тому

    i have a function fetch issue not importin data can you help me

  • @artichaudhari3539
    @artichaudhari3539 2 роки тому

    I am getting this error
    Message: Class 'PHPExcel_Shared_String' not found

  • @saurabhtechmave
    @saurabhtechmave Рік тому

    it work on local is fine but it is not working in live server how can i fix this

  • @franzibanez1558
    @franzibanez1558 4 роки тому

    Gracias por la ayuda Saludos desde BOLIVIA

  • @ahsannisar8211
    @ahsannisar8211 3 роки тому

    sir please tell me about read and write docx file in codeigniter

  • @riaudeveloper6631
    @riaudeveloper6631 5 років тому

    this did not work for me Im getting an error on the main.php file on line 9 and i didnt change anything. can you help me mr ?
    This Error :
    An uncaught Exception was encountered
    Type: Error
    Message: Call to undefined method Main_model::fetch_data()
    Filename: C:\xampp2\htdocs\testing\application\controllers\main.php
    Line Number: 9
    Backtrace:
    File: C:\xampp2\htdocs\testing\index.php
    Line: 315
    Function: require_once

  • @samario0912
    @samario0912 3 роки тому

    Friend, thank you, it worked, greetings from Santa Marta Colombia. I did it directly from the form. in the view put

  • @hugengseto
    @hugengseto 2 роки тому

    thanks a lot bro, really helpful

  • @bernardgeron3694
    @bernardgeron3694 4 роки тому

    I got an ziparchieve error. Is says something wrong with excel2007.php

  • @danapersad1179
    @danapersad1179 5 років тому +3

    This did not work for me. Im getting an error on the main.php file on line 9 and i didnt change anything

    • @piusvictor8780
      @piusvictor8780 5 років тому +1

      There are minor changes you need to do,first you need to create a database called testing then navigate on database.php file to make sure the configuration matches your database connection,second you have to go route.php and add $route['excel_import/fetch']='excel_import/fetch'; then go to your browser type the link your base_url followed with excel_import/fetch e.g base_url/excel_import/fetch and it will work as a magic,note:base_url represent the url path to your project root directory...

  • @ayandas9477
    @ayandas9477 4 роки тому

    value fetch successfully done but not in insert or importing data into database. hope anyone will help @Webslesson

  • @expresstutorial3255
    @expresstutorial3255 6 років тому

    I want to show data in a table but then i want to show at the bottom i a new row, the result of a SUM From a column, how can i do that with datatables, jquery AJAX PHP and mysqli?? Could you do a tutorial.?

  • @Andreanrahmansyahputra
    @Andreanrahmansyahputra 5 років тому +1

    An uncaught Exception was encountered
    Type: Error
    Message: Call to undefined method Main_model::fetch_data()
    Filename: C:\xampp\htdocs\andreanrahmansyahputra\how-to-import-excel-file-in-codeigniter\application\controllers\main.php
    Line Number: 9
    Backtrace:
    File: C:\xampp\htdocs\andreanrahmansyahputra\how-to-import-excel-file-in-codeigniter\index.php
    Line: 315
    Function: require_once

  • @vrajchavda5425
    @vrajchavda5425 11 місяців тому

    Thank you 😍

  • @digitalcodelibrary3221
    @digitalcodelibrary3221 6 років тому +1

    GOOD FRIEND I WANT TO INSERT AN EXCEL FILE, BUT BEFORE I WOULD LIKE TO VALIDATE THAT IT DOES NOT HAVE EMPTY FIELDS AND AFTER THAT VALIDATE THAT IT IS NOT IN THE DATABASE NOTIFYING WITHOUT INSERT NOTHING

  • @amirulafiq4371
    @amirulafiq4371 6 років тому

    Hello Webslesson can you make a tutorial about editing and deleting imported data via mysql and then display it in excel after exporting?

  • @hassanfarooq2502
    @hassanfarooq2502 3 роки тому

    Hi Sir its humble request please accet .
    Can We code in This video also in Codeligniter 4

  • @rahmatfirman5765
    @rahmatfirman5765 6 років тому +1

    It's worked for me. But, it's seems like receive any file as long it's excel file and insert into db. I have been trying to import file that didn't match with the column requirement at column table but it's still success insert that data. How to add validation so just file that have save column with the table at db inserted. So, i can return an error message. Thanks.

    • @fahadkp587
      @fahadkp587 5 років тому

      you can get the count of rows in selected file and database. just check weather they are equal or not

  • @namrataskale130
    @namrataskale130 2 роки тому

    Display no direct script access allowed

  • @Cacanh180
    @Cacanh180 5 років тому

    How to know that which row is inserted successful or not?

    • @rahmatfirman5765
      @rahmatfirman5765 5 років тому +1

      i think u should do that in the controller. first you need to check each data success or not inserted. push it into php object and then return it to view. you can display that data as you like. for example : in this tutorial. controller send one parameter as ajax function success return.

    • @Cacanh180
      @Cacanh180 5 років тому

      Rahmat Firman i already did it. Query insert_batch return number of successful inserted records, ex: resultNumber. I get this number to function get_last_record(resultNumber) which is order by id (auto incre) desc. Then i just compare returned data to excel file.

  • @syafa_channel2938
    @syafa_channel2938 5 років тому

    what if the date format?

  • @michaelkaszuba3921
    @michaelkaszuba3921 5 років тому

    Does this still work with the new PHPspreasheet extion?

  • @Jarjitsingh20
    @Jarjitsingh20 5 років тому

    Why this is not working?? And the css not applied. Can you help me?

  • @gitaaulia1166
    @gitaaulia1166 2 роки тому

    Thanks 👍

  • @christianigay6553
    @christianigay6553 6 років тому

    db fetch successfully done but not in insert or importing data into database. hope anyone will help

  • @MeghaNatekar59
    @MeghaNatekar59 3 місяці тому

    It is not working out for me

  • @harshapriyalal3958
    @harshapriyalal3958 6 років тому

    It is working completely. thank you keep it up.

  • @sistemassarco8234
    @sistemassarco8234 5 років тому

    how import dates? please

  • @codextricks
    @codextricks 3 роки тому

    Class 'ZipArchive' not found file => application/libraries/PHPExcel/Reader/Excel2007.php on line 85

  • @shahinulislamsuzon9319
    @shahinulislamsuzon9319 4 роки тому

    Your tutorial is good .I need react tutorial .This type tutorial will be help full to everybody........

  • @freedy9740
    @freedy9740 6 років тому

    i had watch this tutorial, very helpfully, i succeeded to display the data from the db , but the insert part is not working, is someone can provide assistance ?

    • @rahmatfirman5765
      @rahmatfirman5765 6 років тому

      can you show the error message ?see console at your web browser to see if any error happen with your code. make sure you didn't miss any line of code. see the full code at the web under description and compare with your code.
      contact me : transilica@gmail.com

  • @vincentkenny98
    @vincentkenny98 5 років тому +1

    Thankyou so so much. You're my hero!

  • @fahadkp587
    @fahadkp587 5 років тому

    Yeah That's worked for me. Thank you so much dear. Hope you post more useful videos in future

  • @syafa_channel2938
    @syafa_channel2938 5 років тому

    The action you have requested is not allowed.

  • @parthprajapati8977
    @parthprajapati8977 5 років тому

    .sql file is not available in source code

  • @haadsine
    @haadsine 4 роки тому

    life saver👍🏽

  • @Kajal_Verma17
    @Kajal_Verma17 5 років тому

    plz give me Excel folder all files code like phpexcel.php, excel.php, IOFactory

  • @AlexanderKwalsh
    @AlexanderKwalsh 6 років тому

    Good tutorial. Please can you send a download link to this tutorial so we can download it? Thank you

    • @rahmatfirman5765
      @rahmatfirman5765 6 років тому

      check in the description. He provide web link to see the full code.

    • @Cacanh180
      @Cacanh180 5 років тому

      @@rahmatfirman5765 500 internal server error. i download code above but not work

  • @dediatib6573
    @dediatib6573 6 років тому

    awesome tutorial,

  • @befekaduasmare6410
    @befekaduasmare6410 6 років тому

    Thank You , Best Video. If you can please prepare tcpdf with code igniter video

    • @webslesson
      @webslesson  6 років тому

      Ya sure we will publish video tutorial on Generate PDF by using TCPDF with Codeigniter.

  • @pedroacosta6124
    @pedroacosta6124 3 роки тому

    Thanks

  • @zahidtuhin1407
    @zahidtuhin1407 6 років тому

    Really helpful.

  • @wz_alex9798
    @wz_alex9798 6 років тому

    index name undefined :'v helpmeeeeeeeee

  • @ijasdeen3809
    @ijasdeen3809 6 років тому

    Please make a tutorial about creating social app like facebook or whatsApp

  • @WaniaAliFoodSecret
    @WaniaAliFoodSecret 4 роки тому

    Execllent

  • @leoanglo6176
    @leoanglo6176 4 роки тому

    An uncaught Exception was encountered
    Type: Error
    Message: Call to undefined method Main_model::fetch_data()
    Filename: C:\xampp\htdocs\prologin\how-to-import-excel-file-in-codeigniter\application\controllers\main.php
    Line Number: 9
    Backtrace:
    File: C:\xampp\htdocs\prologin\how-to-import-excel-file-in-codeigniter\index.php
    Line: 315
    Function: require_once

  • @christianigay6553
    @christianigay6553 6 років тому

    500 internal server error

    • @rezachrisna2453
      @rezachrisna2453 5 років тому

      i think it was because you send $data in controller but not setting $data in model, so $data is not initialization for model, that's what make it error

    • @Cacanh180
      @Cacanh180 5 років тому

      @@rezachrisna2453 did you fix this one? can you show me full code. i download code above but not work. same 500 internal server error

    • @Cacanh180
      @Cacanh180 5 років тому

      i found it. you should set variable in autoload.php as video clip above. in 2:00

  • @ulinnuha1961
    @ulinnuha1961 4 роки тому

    save permission

  • @pharyyady
    @pharyyady 6 років тому

    Hi Friends

  • @CristianRamirez1
    @CristianRamirez1 3 роки тому

    OBSOLETE!!!

  • @The.eminence
    @The.eminence 2 роки тому

    thanks