$rows = array();
$total = array();
$stores = array();
foreach ($resultData as $item) {
$rows[$item['hour']]['total_orders'] += 1;
$total['total_orders'] += 1;
$rows[$item['hour']][$item['code']] += $item['order_total'];
$rows[$item['hour']]['all'] += $item['order_total'];
$total[$item['code']] += $item['order_total'];
$total['all'] += $item['order_total'];
if (!array_key_exists($item['store_code'], $item)) {
$stores[$item['code']] = $item['name'];
}
}
return array(
"rows" => $rows,
"total" => $total,
"list" => $stores
);Hata kodlarıNotice: Undefined index: 14 in /Dosya.php on line 205
Notice: Undefined index: total_orders in /Dosya.php on line 205
Notice: Undefined index: total_orders in /Dosya.php on line 206
Notice: Undefined index: 3 in /Dosya.php on line 207
Notice: Undefined index: all in /Dosya.php on line 207
Notice: Undefined index: all in /Dosya.php on line 208 şeklinde devam ediyor.