PHP Classes

Warning message

Recommend this page to a friend!

      Excel XML Parser  >  All threads  >  Warning message  >  (Un) Subscribe thread alerts  
Subject:Warning message
Summary:It works, but I cann't figure out why th warning messages !
Messages:1
Author:James Mead
Date:2008-06-11 23:24:24
 

  1. Warning message   Reply   Report abuse  
Picture of James Mead James Mead - 2008-06-11 23:24:24
BTW: Great work !

<?php
include "ExcelXMLParser.php";
$ExcelXMLParser = new ExcelXMLParser();
$result = $ExcelXMLParser->openWorkbook("cx.xml",array());
if(!ExcelXMLError::isError($result)){
$Worksheet =& $ExcelXMLParser->Workbook->getFirstWorksheet();
while($Worksheet){
$Row =& $Worksheet->Table->getFirstRow();
while($Row){
$Cell =& $Row->getFirstCell();
while($Cell){
print($Cell->getValue());
print(" - ");
$Cell =& $Row->getNextCell();
}
print("<br>");
$Row =& $Worksheet->Table->getNextRow();
}
$Worksheet =& $ExcelXMLParser->Workbook->getNextWorksheet();
}
}
else{
$result->raiseError();
die('x');
}
?>



TELEFONE - MENSAGEM -
123456099 - This is a sample message 099 -
123456100 - This is a sample message 100 -
123456101 - This is a sample message 101 -
123456102 - This is a sample message 102 -
123456103 - This is a sample message 103 -
123456104 - This is a sample message 104 -
123456105 - This is a sample message 105 -
123456106 - This is a sample message 106 -
123456107 - This is a sample message 107 -
123456108 - This is a sample message 108 -

Warning: array_keys() [function.array-keys]: The first argument should be an array in J:\Program Files\Apache Software Foundation\Apache2.2\htdocs\excel\ExcelXMLArrayIterator.php on line 116

Warning: array_keys() [function.array-keys]: The first argument should be an array in J:\Program Files\Apache Software Foundation\Apache2.2\htdocs\excel\ExcelXMLArrayIterator.php on line 116