Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/10/2008, 07:04
Avatar de RollerSky
RollerSky
 
Fecha de Ingreso: marzo-2008
Mensajes: 123
Antigüedad: 16 años, 1 mes
Puntos: 8
Respuesta: Orden de compra

Sera que te falta un Igual? en el IF


Código PHP:
$i=1
   while(
$row mysql_fetch_array($query)) {  
  if (
$x[$i]==true){ 
$sumatotal=$row["unidades"] + $sumatotal
$preciototal=$precio*$row["unidades"] +$preciototal
printf("<tr><td>&nbsp;%s</td><td>&nbsp;%s</td><td>&nbsp;%s&nbsp;</td></tr>",$row["Nombre"],$row["unidades"],$precio*$row["unidades"]); 

 } 
  
$i=$i+1
  } 

pruebalo asi y nos cuentas