I have 2 variables that come by get method
if(isset($_GET['p'])){
$_SESSION['producto']['id'] = $_GET['p'];
}
if(isset($_GET['c'])){
$_SESSION['producto']['can'] = $_GET['c'];
}
with that I need to make a foreach loop that travels the bi-dimensional array and then make a query query and put the query data with while
for ($i=0; $i < count($_SESSION['producto']); $i+=2 ){
$query = mysqli_query($conect,'SELECT * FROM Productos WHERE
id='.$_SESSION['producto']['id'].''); //no pongo mas para no aburrir
the thing esque cone so I throw the result well but if I keep clicking on add cart no longer executes the code no s esi no longer runs the loop just change information as I click if I have 1 and I return to click on instead of increasing another line to that 1 changes it to 2 and nothing else