Fatal error: Uncaught Error: Cannot use object of type stdClass as array in C:\Apache\htdocs\index1.php:8 Stack trace: #0 {main} thrown in C:\Apache\htdocs\index1.php on line 8
Line 8:
$sum += $tupel['amount'];
Danke nochmal :)
Zeig mal statt dessen ($sum += $tupel['amount'];
) mit
print '<pre>'; print_r( $tupel ); exit;
her, was Du da hast.