Guten Morgen Board,
es kommt bei diesem Kode ständig die Notiz:
"Notice: Undefined offset: 0".
	
Was möchte der Interpreter hier ?
							
						
					es kommt bei diesem Kode ständig die Notiz:
"Notice: Undefined offset: 0".
PHP-Code:
	
	
$latestProducts = array();
$x = 1;
while ($row =& $res->fetchRow(DB_FETCHMODE_ASSOC)) {
    if ($row['name'] != $latestProducts[$x-1]['name']) {
        $row['thumb'] = str_replace(".jpg", "-t.jpg", $row['picture']);
        $latestProducts[$x] = $row; // wenn fertig, läuft DatenIndex von 1 bis x-1
        $x++;
    }
} 
 
          
Kommentar