Jump to content


henriquejf

Member Since 05/02/2017
Offline Last Active 10/02/2017, 23:04
-----

#1038168 Notice: Undefined index:

Posted by henriquejf on 05/02/2017, 20:52

Pessoal, estou tentando resolver o problema desta mensagem no script, porém não encontrei a solução. Alguém pode ajudar?

Notice: Undefined index: RIO DE JANEIRO in C:\inetpub\wwwroot\sistemas\nasfe\relatorio-gerencial.php on line 189

 

  while ($counter < $totProd) {

    $cidade= trim(strtoupper(mysql_result($resSql,$counter,"CIDADEOCORRE")));

    $cidade1[$counter] = $cidade;
     if ($cidade1[$counter] =="") {$cidade1[$counter]="DESCONHECIDA";};
    $city = $cidade1[$counter];
    $cidadess[$city]++; //Essa é a linha 189!!!!!!!!!!!!
     $cidade = "";

 

};




IPB Skin By Virteq