acmbar Posted March 22, 2010 Share Posted March 22, 2010 $_SESSION['cart']($row2['id_product']) = array("quantity" => 1, "price" => $row2['price']); I've not seen this error before? Any idea how to fix it? Link to comment https://forums.phpfreaks.com/topic/196068-fatal-error-cant-use-function-return-value-in-write-context/ Share on other sites More sharing options...
scvinodkumar Posted March 22, 2010 Share Posted March 22, 2010 you should not use the array dimension like that, it should be, $_SESSION['cart'][$row2['id_product']] = array("quantity" => 1, "price" => $row2['price']); Link to comment https://forums.phpfreaks.com/topic/196068-fatal-error-cant-use-function-return-value-in-write-context/#findComment-1029929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.