Save Data of dynamic inputs in database

0

The $ _POST ['txCuales'] brings the data of my own inputs that I descerialize and decode.

$Folios = unserialize(base64_decode($_POST['txCuales']));

foreach($Folios as $Fol){

    $param = array();
    $param['clave']             = $_SESSION['uid']['clave'];
    $param['password']          = $_SESSION['uid']['password'];
    $param['id']                = '';//$id;
    $param['PackingList']       = $_POST['txFolio'];
    $param['idEmbalaje']        = '0';
    $param['Embalaje']          = '0';
    $param['SerieMaster']       = '0';
    $param['FechaAlta']         = date("Y-m-d H:i:s");
    $param['UsuarioAlta']       = $_SESSION['uid']['clave'];
    $param['idDetalle']         = $idSXV;
    $param['Folio']             = $Fol[0];
    $param['idPedidoDetalle']   = '0';
    $param['opca']              = '0';
    $param['opcb']              = '';
    $param['opcc']              = '';
    $param['opcd']              = '';
    $param['tipo']              = '1';

    $resultSC = $client_vta->call('SXVMasters',array('data'=>$param));

    }

This is the foreach where you save the data to my database, but it only saves me the first input I entered.

If I write in 5 inputs, it only saves me the first input. HELP!

    
asked by alo GM 16.11.2018 в 21:56
source

0 answers