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