Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/07/2009, 04:01
albert1980
 
Fecha de Ingreso: julio-2009
Mensajes: 118
Antigüedad: 14 años, 9 meses
Puntos: 2
Respuesta: Añadir datos a una session

así:

Código PHP:
$Contenido = array("Codigo" => $id"Precio" => $precio"Cantidad" => $canti"Total" => ($precio $canti), "Existencia" => ($exis $canti)); 
        
$i 0;
while(
$_SESSION["cesta"][$i] <> '')
$i++;

$_SESSION["cesta"][$i] = $Contenido