Ver Mensaje Individual
  #35 (permalink)  
Antiguo 08/09/2010, 13:01
Avatar de cmalvy
cmalvy
 
Fecha de Ingreso: septiembre-2010
Mensajes: 25
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: Carro de compras sin compra online

Cita:
Iniciado por silvanha Ver Mensaje
eso aparece así por que no pusiste los encabezados.. por ahí antes explico que onda..
SI tenes razon es que use el otro archivo (casi sin arreglar..)

Cita:
Iniciado por silvanha Ver Mensaje
en fin, de lo otro .. a ver pasa tu función muestra_carrito.. aver que tal.. se ve que no imprime nada..

Código PHP:
function muestra_carrito(){
    
        
$suma 0;
        echo 
'<table border="1" id="table1" style="text-align:center;text-decoration: none;border-collapse: collapse; color:#000000; border-left-width:0px; border-right-width:0px; border-top-width:0px" bordercolorlight="#909090" bordercolordark="#909090" bordercolor="#909090" cellspacing="0" width="90%" height="0" cellpadding="3">
              <tr>
                <td><b>Nombre producto</b></td>
                <td><b>Precio ($)</b></td>
                <td><b>Estado</b></td>
              </tr>'
;
        for (
$i=0;$i<$this->num_productos;$i++){
            if(
$this->array_id_prod[$i]!=0){
                echo 
'<tr>';
                echo 
"<td>" $this->array_nombre_prod[$i] . "</td>";
                echo 
"<td>" $this->array_precio_prod[$i] . "</td>";
                echo 
"<td><a href='eliminar_producto.php?linea=$i'>Eliminar producto</td>";
                echo 
'</tr>';
                
                
$suma += $this->array_precio_prod[$i];
                
                
            }
        }