Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/07/2004, 12:44
tmh4mail
 
Fecha de Ingreso: junio-2004
Mensajes: 71
Antigüedad: 19 años, 10 meses
Puntos: 1
Meda este error con este code:

if( $Qty1 ) $query=mysql_query(" UPDATE qaninv SET qtys='$Qty1' ,stock=stock-'$Qty1' WHERE itemid='$ItemQA031'");
if( $Qty2 ) $query=mysql_query(" UPDATE qaninv SET qtys='$Qty2' ,stock=stock-'$Qty2' WHERE itemid='$ItemQA033'");


Error in query:You have an error in your SQL syntax near '1' at line 1

alguna otra solucion.

gracias.