How are you? I'm trying to get help with the following >
I have this Array:
$ComprobanteItem_1 = array(
"Cantidad" => 1,
"Detalle" => "Producto Uno",
"Codigo" => "CODPROD",
"IVA" => 21,
"PrecioUnitario" =>100,
"Total" => 121,
"Gravado" => true,
"Bonificacion" => 0
),
I need a While or some type of Loop, I complete the fields and increase the identifier CheckBox_X where X would be the Array Number. All based on the query made in the database. There can be 1 like 20 Items in repeating this code fragment and I can not get it to work. the Gross Code would have to stay that way
$items = array(
$ComprobanteItem_1 = array(
"Cantidad" => 1,
"Detalle" => "Producto Uno",
"Codigo" => "CODPROD",
"IVA" => 21,
"PrecioUnitario" =>100,
"Total" => 121,
"Gravado" => true,
"Bonificacion" => 0
),
$ComprobanteItem_2 = array(
"Cantidad" => 1,
"Detalle" => "Producto Uno",
"Codigo" => "CODPROD",
"IVA" => 21,
"PrecioUnitario" =>100,
"Total" => 121,
"Gravado" => true,
"Bonificacion" => 0
),
);
How can I do it ?? thanks !!!