Login   Register  
PHP Classes
elePHPant
Icontem

prob

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Convert Excel to JSON  >  All threads  >  prob  >  (Un) Subscribe thread alerts  
Subject:prob
Summary:excel to json
Messages:2
Author:samistiti
Date:2013-10-26 17:01:03
Update:2014-01-23 03:12:41
 

  1. prob   Reply   Report abuse  
Picture of samistiti
samistiti
2013-10-26 17:01:03
Notice: Undefined property: excel2JSON::$excel_sheets in C:\wamp\www\excel_json\excelMap.class.php on line 129

Warning: in_array() expects parameter 2 to be array, null given in C:\wamp\www\excel_json\excelMap.class.php on line 129

  2. Re: prob   Reply   Report abuse  
Picture of Karl Holz
Karl Holz
2014-01-23 03:12:41 - In reply to message 1 from samistiti
you need to set the excel xlsx file.

take a look at the example bellow, set $file to your xlsx file and $sheet to the sheet name. take a look at the examples to get a better idea of what you can do.

example:
___________________
<?php

require_once 'excelMap.class.php';
$e=new excel2JSON();
$e->set_excel($file, 'false');
$e->load_sheet($sheet);