I'm having problems adding elements to a session array.
this is what I am trying and its not working
array_push($_SESSION["sess_prod_id"],$product_ID);
array_push($_SESSION["sess_prod_qty"],$product_qty);
it keeps telling me that the $_SESSION is not an array and I did declare it like this
$sess_prod_id[0]=$product_ID;
$sess_prod_qty[0]=$product_qty;
$_SESSION["sess_prod_id"]=array();
$_SESSION["sess_prod_id"]=array();
$_SESSION["sess_prod_id"]=$sess_prod_id[0];
$_SESSION["sess_prod_qty"]=$sess_prod_qty[0];
does anyone know if I'm declaring the arrray wrong or there something wrong with the push???/