Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/10/2013, 20:42
ruben_chirinos_1985
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: actualizar cantidad de existencia en tabla productos

como re refieres amigo mira como estoy inentandolo hacer y me da error

Código PHP:
Ver original
  1. mysql_query("update productos set existencia=cantidad - $cantidad[$i] where producto = $producto[$i]") or die(mysql_error());

error
Notice: Undefined offset: 8 in C:\xampp\htdocs\facturacion\administrador\conexion fact_proveedor.php on line 67

Notice: Undefined offset: 8 in C:\xampp\htdocs\facturacion\administrador\conexion fact_proveedor.php on line 67
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where producto =' at line 1