-2

how could i remove this error i just trying but i can't found any solution for this. this is the exactly code which i'm using but that one error intrpting.

$abfrage = mysql_query ("SELECT * FROM fsom_keywords WHERE active = 1",$link);
while ( $daten = @mysql_fetch_array($abfrage)){ 
    echo'<tr><td>';
    echo utf8_encode($daten['keyword']);
    echo'</td>';
    echo'<td>';
    echo $tage7[utf8_encode($daten['keyword'])];
    echo'</td>';
    echo'<td>';
    echo $tage1[utf8_encode($daten['keyword'])];
    echo'</td>';
    echo'<td>';
    echo $tage0[utf8_encode($daten['keyword'])];
    echo'</td>';
    echo'<td>';
    if($tage1[utf8_encode($daten['keyword'])]!="" && $tage0[utf8_encode($daten['keyword'])]!="")
{
    echo $tage1[utf8_encode($daten['keyword'])] - $tage0[utf8_encode($daten['keyword'])];
    }
    echo'</td>';
    echo'</tr>';
    }}  
error_reporting(E_ALL);
ini_set('display_errors', 1);
Sougata Bose
  • 31,517
  • 8
  • 49
  • 87

1 Answers1

0

you should check values using isset() before echoing

echo isset($daten['keyword'])?$daten['keyword']:"";
Manish Shukla
  • 1,355
  • 2
  • 8
  • 21