I have the session $_SESSION['cart_array'] which stores data from my shopping cart, and once var_dumped looks like
array(2) {
[0]=>array(3){
["item_id"]=>string(1) "6"
["quantity"]=>int(1)
["price"]=>string(5) "10.99"
}
[1]=>array(3) {
["item_id"]=>string(1) "7"
["quantity"]=>int(1)
["price"]=>string(4) "1.99"
}
}
I think I need to store each column in a variable to be able to parse it to my function then Mysql query. How is this done?
$_SESSIONarray is a variable, isn't it?