1
I am trying to use Phpexcel to try to import . xls and convert them to php, to add your information in the database.
However, when I import a file . xls, I get the following Notice:
Undefined offset: 0 in C:\wamp64\www\T-GET\vendor\phpoffice\phpexcel\Classes\PHPExcel\Reader\Excel5.php
But the data is normally extracted from the file and added to the database correctly (at least, so far, I think). Only I get returned that Notice every time I draw a line from that . xls.
I will leave the link of my PHP code (in Pastebin) and how I use Phpexcel. https://pastebin.com/Rs8kiC1z
The presented Notice seems to be of some problem in Phpexcel’s Excel5.php file.
Below is the code of the Excel5.php file, in which Notice is showing abnormality:
<?php
//add style information
if (!$this->readDataOnly && $this->readEmptyCells)
{
$this->phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->mapCellXfIndex[$xfIndex]);
}
?>
Someone’s been through it ?
OBS: I just found out that this library has been discontinued since 2015. But I already have all the code ready. 2 days doing. And it’s just a Notice. I could use that lib until I find another.