Prueba asi
Código PHP:
Ver original$pre = mysql_query("select PRECIO from productos where nombre='".$nom."'"); $pre = mysql_fecht_array($pre);
$pre = $pre['PRECIO'];
$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 =