Array ( [0] => Array ( [order_id] => 33 [order_item_name] => Nazwa 1 [product_id] => 17 [product_attribute] => 3 ) [1] => Array ( [order_id] => 37 [order_item_name] => Nazwa 2 [product_id] => 17 [product_attribute] => 18 ) [2] => Array ( [order_id] => 34 [order_item_name] => Nazwa 3 [product_id] => 17 [product_attribute] => 4 ) [3] => Array ( [order_id] => 36 [order_item_name] => Nazwa 4 [product_id] => 16 [product_attribute] => 1 ) )
Chciałbym wyświetlić wynik pogrupowany wg [product_id]
Produkt 17 | ilość 3 | Suma [product_attribute]
Produkt 16 | ilość 1 | | Suma [product_attribute]
Próbuje z foreach i brak efektów.
msm