te muestro la parte de la inserción:
    
Código PHP:
Ver original$total = $_REQUEST['total_filas'];// en tu form en un imput type hidden guarda el número total de registros
 
$acumulador = 0;
do{
    $acumulador += 1;
   
    $txtCantidadEfectivo = $_REQUEST['cantidad_efectivo'.$acumulador];
     echo $txtCantidadEfectivo."<br/>";
 
}while($acumulador <= $totalFilas);
  
Espero haberte ayudado...