How to Import Excel File in Codeigniter

How to Import Excel File in Codeigniter

Webslesson

6 лет назад

62,108 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Saurabh Kumar
Saurabh Kumar - 09.06.2023 10:38

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

Ответить
arohi wahi
arohi wahi - 31.12.2022 09:27

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

Ответить
Klik Hoesa
Klik Hoesa - 22.10.2022 04:55

thanks a lot bro, really helpful

Ответить
Venky Ammu
Venky Ammu - 25.08.2022 12:20

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

Ответить
Roby Ortega
Roby Ortega - 15.08.2022 07:04

can make how skipp if row value empty please

Ответить
Namratas Kale
Namratas Kale - 30.06.2022 11:34

Display no direct script access allowed

Ответить
Gita Aulia
Gita Aulia - 10.04.2022 08:53

Thanks 👍

Ответить
The Eminence
The Eminence - 21.01.2022 12:51

thanks

Ответить
Arti Chaudhari
Arti Chaudhari - 05.01.2022 10:34

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

Ответить
Sezer Ünalmış
Sezer Ünalmış - 05.11.2021 09:31

I'm taking like this error please help me

A PHP Error was encountered
Severity: 8192

Message: Array and string offset access syntax with curly braces is deprecated

Filename: Worksheet/AutoFilter.php

Line Number: 720

Backtrace:

File: C:\xampp\htdocs\deneme\application\libraries\PHPExcel\Autoloader.php
Line: 79
Function: _error_handler

File: C:\xampp\htdocs\deneme\application\libraries\PHPExcel\Autoloader.php
Line: 79
Function: require

File: C:\xampp\htdocs\deneme\application\libraries\PHPExcel\Worksheet.php
Line: 361
Function: spl_autoload_call

File: C:\xampp\htdocs\deneme\application\libraries\PHPExcel.php
Line: 371
Function: __construct

File: C:\xampp\htdocs\deneme\application\libraries\Excel.php
Line: 9
Function: __construct

File: C:\xampp\htdocs\deneme\application\controllers\Excel_import.php
Line: 9
Function: library

File: C:\xampp\htdocs\deneme\index.php
Line: 315
Function: require_once

Ответить
Hassan Farooq
Hassan Farooq - 31.10.2021 09:31

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

Ответить
Johan Castillo
Johan Castillo - 03.04.2021 23:16

Friend, thank you, it worked, greetings from Santa Marta Colombia. I did it directly from the form. in the view put <form method = "post" enctype = "multipart / form-data" action = "<? php echo base_url ();?> Excel_import / import"> don't use ajax, soon someone will use the data.

Ответить
Cristian Ramirez
Cristian Ramirez - 10.03.2021 17:00

OBSOLETE!!!

Ответить
Pedro Acosta
Pedro Acosta - 29.01.2021 06:25

Thanks

Ответить
Ahsan Nisar
Ahsan Nisar - 22.01.2021 21:39

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

Ответить
Patrick Maine
Patrick Maine - 11.01.2021 07:50

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

Ответить
Codex Trick
Codex Trick - 08.01.2021 14:39

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

Ответить
Bernard Geron
Bernard Geron - 27.06.2020 06:50

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

Ответить
Ayan Das
Ayan Das - 11.06.2020 10:56

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

Ответить
B34CH
B34CH - 09.06.2020 11:53

life saver👍🏽

Ответить
Muhammad Ali
Muhammad Ali - 06.06.2020 16:53

Execllent

Ответить
Ulin Nuha
Ulin Nuha - 29.04.2020 03:38

save permission

Ответить
Franz Ibanez
Franz Ibanez - 15.03.2020 09:01

Gracias por la ayuda Saludos desde BOLIVIA

Ответить
Leo Anglo
Leo Anglo - 11.03.2020 19:08

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

Ответить
Shahinul Islam Suzon
Shahinul Islam Suzon - 19.02.2020 14:08

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

Ответить
Abhishek verma
Abhishek verma - 30.01.2020 20:53

i like your video .. but i am face a issue it's php liabrary run properly my localhost ...but it is not run my server
Note : this error show
Severity: 8192

Message: Array and string offset access syntax with curly braces is deprecated

Filename: Shared/String.php

Line Number: 529

Backtrace:

File: D:\xampp\htdocs\TMS4041\application\libraries\PHPExcel\Autoloader.php
Line: 82
Function: _error_handler

File: D:\xampp\htdocs\TMS4041\application\libraries\PHPExcel\Autoloader.php
Line: 82
Function: require

File: D:\xampp\htdocs\TMS4041\application\libraries\PHPExcel\Autoloader.php
Line: 36
Function: spl_autoload_call

File: D:\xampp\htdocs\TMS4041\application\libraries\PHPExcel.php
Line: 6

Function: require

Ответить
Syafa_Channel
Syafa_Channel - 03.12.2019 06:55

what if the date format?

Ответить
Syafa_Channel
Syafa_Channel - 20.11.2019 12:27

The action you have requested is not allowed.

Ответить
Riau Developer
Riau Developer - 27.10.2019 14:20

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

Ответить
dana persad
dana persad - 26.07.2019 22:14

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

Ответить
Fahad Kp
Fahad Kp - 25.07.2019 16:14

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

Ответить
Ruri Irawan
Ruri Irawan - 25.07.2019 06:48

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

Ответить
Sistemas Sarco
Sistemas Sarco - 02.07.2019 00:10

how import dates? please

Ответить
Anh Thợ Máy Bán Cá
Anh Thợ Máy Bán Cá - 19.06.2019 17:28

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

Ответить
vincentkenny98
vincentkenny98 - 13.05.2019 21:13

Thankyou so so much. You're my hero!

Ответить
Andrean rahmansyah putra
Andrean rahmansyah putra - 12.03.2019 17:21

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

Ответить
Michael Kaszuba
Michael Kaszuba - 11.03.2019 21:16

Does this still work with the new PHPspreasheet extion?

Ответить
Parth Prajapati
Parth Prajapati - 06.03.2019 14:53

.sql file is not available in source code

Ответить
Kajal Verma
Kajal Verma - 06.02.2019 12:33

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

Ответить
christian igay
christian igay - 09.10.2018 07:35

500 internal server error

Ответить
christian igay
christian igay - 09.10.2018 07:34

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

Ответить
billy ardi
billy ardi - 01.10.2018 10:36

i've got some error, please help me.

An uncaught Exception was encountered

Type: Error

Message: Call to undefined method Main_model::fetch_data()

Filename: C:\xampp\htdocs\ExcelToMySQL\application\controllers\main.php

Line Number: 9

Backtrace:

File: C:\xampp\htdocs\ExcelToMySQL\index.php
Line: 315
Function: require_once

Ответить
wz_alex
wz_alex - 19.09.2018 19:34

index name undefined :'v helpmeeeeeeeee

Ответить
zahid tuhin
zahid tuhin - 12.09.2018 09:36

Really helpful.

Ответить
Hash online
Hash online - 06.09.2018 14:03

It is working completely. thank you keep it up.

Ответить
Harry Yadi
Harry Yadi - 05.09.2018 04:01

Hi Friends

Ответить
Rahmat Firman
Rahmat Firman - 02.09.2018 21:18

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.

Ответить
Freedy
Freedy - 13.08.2018 16:18

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 ?

Ответить
Amirul Afiq
Amirul Afiq - 27.07.2018 06:52

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

Ответить