Ver Mensaje Individual
  #11 (permalink)  
Antiguo 03/06/2004, 13:00
Avatar de Reynier
Reynier
 
Fecha de Ingreso: noviembre-2002
Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 21 años, 5 meses
Puntos: 1
Prueba así

Prueba así a ver si te da resultado:
Código PHP:
<?
 session_start
();
 if(empty(
$_SESSION['carrito'])){
  
#Lo que vayas a hacer
 
}else{
  
$carrito = array ($referencia => $cantidad);
  
$compra array_merge($tmp_carrito,$carrito);
 }
 foreach (
$compra as $indice => $seleccion)
  echo 
$indice."---".$seleccion."<br>";
 
$_SESSION['carrito']=$micarro;
 
?>
Salu2
__________________
Ing. Reynier Pérez Mira