How to Import Excel File in Codeigniter

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 69

  • @samario0912
    @samario0912 3 года назад

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

  • @franzibanez1558
    @franzibanez1558 4 года назад

    Gracias por la ayuda Saludos desde BOLIVIA

  • @hugengseto
    @hugengseto 2 года назад

    thanks a lot bro, really helpful

  • @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

  • @arohiwahi8220
    @arohiwahi8220 Год назад

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

  • @shahinulislamsuzon9319
    @shahinulislamsuzon9319 4 года назад

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

  • @harshapriyalal3958
    @harshapriyalal3958 6 лет назад

    It is working completely. thank you keep it up.

  • @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

  • @artichaudhari3539
    @artichaudhari3539 2 года назад

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

  • @venkyammu9145
    @venkyammu9145 2 года назад

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

  • @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

  • @fahadkp587
    @fahadkp587 5 лет назад

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

  • @saurabhtechmave
    @saurabhtechmave Год назад

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

  • @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.?

  • @vrajchavda5425
    @vrajchavda5425 Год назад

    Thank you 😍

  • @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...

  • @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?

  • @ahsannisar8211
    @ahsannisar8211 3 года назад

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

  • @bernardgeron3694
    @bernardgeron3694 4 года назад

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

  • @vincentkenny98
    @vincentkenny98 5 лет назад +1

    Thankyou so so much. You're my hero!

  • @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

  • @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

  • @ayandas9477
    @ayandas9477 4 года назад

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

  • @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.

  • @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.

  • @gitaaulia1166
    @gitaaulia1166 2 года назад

    Thanks 👍

  • @hassanfarooq2502
    @hassanfarooq2502 3 года назад

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

  • @michaelkaszuba3921
    @michaelkaszuba3921 5 лет назад

    Does this still work with the new PHPspreasheet extion?

  • @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

  • @Jarjitsingh20
    @Jarjitsingh20 5 лет назад

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

  • @christianigay6553
    @christianigay6553 6 лет назад

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

  • @dediatib6573
    @dediatib6573 6 лет назад

    awesome tutorial,

  • @syafa_channel2938
    @syafa_channel2938 5 лет назад

    what if the date format?

  • @namrataskale130
    @namrataskale130 2 года назад

    Display no direct script access allowed

  • @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

  • @haadsine
    @haadsine 4 года назад

    life saver👍🏽

  • @codextricks
    @codextricks 3 года назад

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

  • @syafa_channel2938
    @syafa_channel2938 5 лет назад

    The action you have requested is not allowed.

  • @zahidtuhin1407
    @zahidtuhin1407 6 лет назад

    Really helpful.

  • @ijasdeen3809
    @ijasdeen3809 6 лет назад

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

  • @sistemassarco8234
    @sistemassarco8234 5 лет назад

    how import dates? please

  • @parthprajapati8977
    @parthprajapati8977 5 лет назад

    .sql file is not available in source code

  • @MeghaNatekar59
    @MeghaNatekar59 3 месяца назад

    It is not working out for me

  • @pedroacosta6124
    @pedroacosta6124 3 года назад

    Thanks

  • @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

  • @Kajal_Verma17
    @Kajal_Verma17 5 лет назад

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

  • @WaniaAliFoodSecret
    @WaniaAliFoodSecret 4 года назад

    Execllent

  • @wz_alex9798
    @wz_alex9798 6 лет назад

    index name undefined :'v helpmeeeeeeeee

  • @ulinnuha1961
    @ulinnuha1961 4 года назад

    save permission

  • @pharyyady
    @pharyyady 6 лет назад

    Hi Friends

  • @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

  • @CristianRamirez1
    @CristianRamirez1 3 года назад

    OBSOLETE!!!

  • @The.eminence
    @The.eminence 2 года назад

    thanks