Comments on: Exporting your MySQL table data with PHPExcel + CodeIgniter https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/ A little bit of PHP, MySQL, JavaScript, HTML5 and CSS3 Mon, 22 Oct 2018 07:30:00 +0000 hourly 1 https://wordpress.org/?v=5.1.4 By: shekhar gohane https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31634 Mon, 22 Oct 2018 07:30:00 +0000 https://dannyherran.com/?p=207#comment-31634 here is an error which unable to handle by me can you give a solution
Non-existent class: IOFactory

]]>
By: Pradeep Kumar https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31627 Thu, 12 Apr 2018 07:28:00 +0000 https://dannyherran.com/?p=207#comment-31627 I Am Pradeep Kumar (pnp intech appr- 2017)

Provide A best Link For databse backup in codingiter
That is Link visit it fastly:

http://only4ututorials.blogspot.in/2016/05/how-to-export-to-excel-in-codeigniter-3.html

]]>
By: Nico Viola https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31597 Tue, 27 Sep 2016 16:40:00 +0000 https://dannyherran.com/?p=207#comment-31597 Hi, a little improvement:
You can fill the document using fromArray() method and forget about $col and $row vars.

use this:

$objPHPExcel = new PHPExcel();
$objPHPExcel->getProperties()->setTitle(“export”)->setDescription(“none”);
$objPHPExcel->setActiveSheetIndex(0);
$fields = $query->list_fields();
$objPHPExcel->getActiveSheet()->fromArray($fields, null, “A1”);
$objPHPExcel->getActiveSheet()->fromArray($query->result_array(), null, “A2”);
$objPHPExcel->setActiveSheetIndex(0);

instead of this:
$fields = $query->list_fields();
$col = 0;
foreach ($fields as $field)
{
$objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($col, 1, $field);
$col++;
}
// Fetching the table data
$row = 2;
foreach($query->result() as $data)
{
$col = 0;
foreach ($fields as $field)
{
$objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($col, $row, $data->$field);
$col++;
}
$row++;
}

]]>
By: Ju Oliveira https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31595 Mon, 12 Sep 2016 16:17:00 +0000 https://dannyherran.com/?p=207#comment-31595 Is it possible to pick the columns ($col) that we want to show in the Excel file?
Like restraining the table only to 5 or 6 specific columns..

And thank you so much!! Your code is very helpful! I’m working with both Codeigniter and PHPExcel and all the examples I could find didn’t have the CodeIgniter part, so thank you!! 🙂

]]>
By: Ángel Rafael Mónaco Reif https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31588 Fri, 06 May 2016 14:28:00 +0000 https://dannyherran.com/?p=207#comment-31588 I need to do the same example in a view, but it doesn’t work. Anyone know why doesn’t work in a view?

]]>
By: mukhila https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31587 Sat, 23 Apr 2016 12:28:00 +0000 https://dannyherran.com/?p=207#comment-31587 test

]]>
By: ravi https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31586 Fri, 22 Apr 2016 19:23:00 +0000 https://dannyherran.com/?p=207#comment-31586 what will be model for this code

]]>
By: chanthol https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31542 Wed, 23 Mar 2016 01:14:00 +0000 https://dannyherran.com/?p=207#comment-31542 it work fine for me

]]>
By: divin kattipparambil https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31541 Thu, 07 Jan 2016 07:24:00 +0000 https://dannyherran.com/?p=207#comment-31541 i found error like “Unable to load the requested class: PHPExcel” please help

]]>
By: Bikash Bhandari https://dannyherran.com/2011/03/exporting-your-mysql-table-data-with-phpexcel-codeigniter/#comment-31540 Thu, 07 Jan 2016 06:41:00 +0000 https://dannyherran.com/?p=207#comment-31540 is this ur manner of teaching ha?? i waste 1 hour of my time on this but not work….shit..

]]>