Badie
09-19-2006, 11:23 AM
hi
im reading from txt file and from Excel file , i read one line from excel and compare it with all list in the txt file
this part of the code
for ($i = 1; $i <= $data->sheets[0]['numRows']; $i++)
{
$fh = fopen($myFile, 'r');
$temp2= $data->sheets[0]['cells'][$i][1] ;
$theData = fgets($fh);
do {
if ($theData == $temp2)
echo $theData . " ->>>>> " . $temp2 . "<br>" ;
}while ($theData = fgets($fh));
everything work fine , but the if statment gives always false . i remove the if statmen and its give the result and write all the data !!
can anyone help ?
im reading from txt file and from Excel file , i read one line from excel and compare it with all list in the txt file
this part of the code
for ($i = 1; $i <= $data->sheets[0]['numRows']; $i++)
{
$fh = fopen($myFile, 'r');
$temp2= $data->sheets[0]['cells'][$i][1] ;
$theData = fgets($fh);
do {
if ($theData == $temp2)
echo $theData . " ->>>>> " . $temp2 . "<br>" ;
}while ($theData = fgets($fh));
everything work fine , but the if statment gives always false . i remove the if statmen and its give the result and write all the data !!
can anyone help ?
