Well, I was getting caught in my code always giving offset error and things like that, when I discovered that somehow my array is not coming full.
I have a form, where it is fed according to the results of the database.
<?php
$Despesas = new Read();
$Despesas->ExeRead("tb_contas", "WHERE id_condominio = :idC AND fg_ativo = '1' ORDER BY nm_nome ASC", "idC={$cond}");
var_dump($Despesas->getRowCount());
?>
<div class="table-responsive">
<table class="table table-striped table-bordered" id="tb-despesas">
<thead>
<tr>
<th>Conta(s)</th>
<th>Valor Cobrar</th>
<th>Valor Real</th>
<th>Referente</th>
<th>Consumo</th>
<th>Medidas</th>
<th>Obs.</th>
</tr>
</thead>
<tbody>
<?php
foreach($Despesas->getResult() as $Despesa):
?>
<tr>
<input name="id_despesa[]" type="hidden" value="<?=$Despesa['id'];?>"> //Aqui passo um hidden pois faço uma verificação depois do ID correto
<td><?=$Despesa['nm_nome']?></td>
<td><input name="vl_valor[]" class="form-control" type="number"></td>
<td><input name="vl_valorreal[]" class="form-control" type="number"></td>
<td><input name="nm_referencia[]" id="dt" class="form-control" onkeypress="mascara(this, '##/####')" type="text"></td>
<td><input name="consumo[]" class="form-control" type="text"></td>
<td><input name="medidas[]" class="form-control" type="text"></td>
<td><input name="obs[]" class="form-control" type="text"></td>
</tr>
<?php
endforeach;
?>
</tbody>
</table>
</div>
I send this via POST
to the same page where I'm dealing with and then write to the database. Then the confusion begins. In a specific search, I get 160 results, but when I go after the post I'm getting only 143, when I try to get the last results it gets offset errors because it does not exist.
When I do another operation where I get fewer indexes, in the 50's, everything works beautifully = P
I even changed my post_max_size among other points in php.ini, but I do not think there are so many results to the point of reaching the limit.
Does anyone have any idea if this is really some post-upload limit or am I missing something?