Ver Mensaje Individual
  #5 (permalink)  
Antiguo 03/03/2013, 18:49
Avatar de dvbeaumont
dvbeaumont
 
Fecha de Ingreso: marzo-2011
Ubicación: Caracas
Mensajes: 145
Antigüedad: 13 años, 1 mes
Puntos: 1
Respuesta: Insertar datos mediante while

Intente lo siguiente,

Pero no arranca

Código PHP:
Ver original
  1. foreach($_POST['id_combo'] as $valor) && ($_POST['ven_combo_cantidad'] as $valor2) {
  2.        $qry = mysql_query("INSERT INTO t_venta_combo (id_combo, id_venta, ven_combo_cantidad) VALUES ('".$valor."', '".$row["id_venta"]."', '".$valor2."')") or die("Query: $qry <br />Error: ".mysql_error());
  3. }

No se cual es el problema,
__________________
Sé parte de nuestro mundo creativo.

http://bbcreativos.com