Ver Mensaje Individual
  #9 (permalink)  
Antiguo 07/12/2012, 11:34
ignatar20
 
Fecha de Ingreso: abril-2012
Ubicación: Malaga
Mensajes: 46
Antigüedad: 12 años, 1 mes
Puntos: 0
Respuesta: Cajas de texto

Lo he cambiado, pero nada sigue igual,
Código PHP:
Ver original
  1. if($nom !="")
  2.                 {
  3.                     $pre = mysql_query("select PRECIO from productos where nombre='".$nom."'");
  4.                     $tot = ($can * $pre);
  5.                     echo("<input type=text value=".$nom."><input type=text value=".$can."><input type=text value=".$pre."><input type=text value=".$tot."><br>");
  6.                     $total = $total + $tot;
  7.                     $art++;
  8.                     mysql_query("UPDATE productos SET cantidad = cantidad - ".$can." where nombre = ".$nom."");
  9.                 }