PHP: Notice: Undefined offset 1 hatası

haydangelen

Öğrenci
Katılım
23 Kasım 2016
Mesajlar
1
Reaksiyon puanı
0
Puanları
1
Yaş
39
PHP:
    <?php
    $excel->read('sample.xls');
    $x=1;
    while($x<=$excel->sheets[0]['numRows']) {
      echo "\t<tr>\n";
      $y=1;
      while($y<=$excel->sheets[0]['numCols']) {
         if ($excel->sheets[0]['cells'][$x][$y]=="17/11/2016"){    
         $cell = isset($excel->sheets[0]['cells'][1][$y]) ? $excel->sheets[0]['cells'][1][$y] : '';
          echo "\t\t<td>$cell</td>\n";
        }
        else{$cell=null;
        }
        $y++;
      }
      echo "\t</tr>\n";
      $x++;
    }
    ?>


Selamlar;
Notice: Undefined offset 1 on line 27
Notice: Undefined offset 4 on line 27

hatası alıyorum.

27. satır şu:
if ($excel->sheets[0]['cells'][$x][$y]=="17/11/2016"){


yardımcı olabilirseniz çok sevinirim.
 
Üst