Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/02/2008, 15:45
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses
Puntos: 2135
Re: Insercion En Base De Datos

Usa un for:
Código PHP:
$detalle $_POST['detalle'];
$cantidad $_POST['cantidad'];
$tipo $_POST['tipo'];
$total count$detalle );
for( 
$i 0$i $total$i++ ) {
         
$cant $cantidad[$i];
         
$tip $tipo[$i];
         
$det $detalle[$i];

         
// aca insertas
         
$sql "INSERT INTO `tabla` (`detalle`, `tipo`, `cantidad` ) VALUES ( '$det', '$tip', '$cant' )";

Saludos.