1
I am making a table and when a value is empty I would like you to ignore the value and be filled with the next row with value.
With the code below, nothing appears, neither value nor worthless.
<table class="table table-striped" id="tblGrid">
<thead>
<tr>
<th align="left">Observações</th>
</tr>
</thead>
<tbody>
<?php while ($row_itens_vazio = $resultado_itens_vazio->fetch_array()) {?>
<tr>
<?php if($row_itens_vazio["obs_tab_itens_cot"]>0){?>
<td align="left" class="td1">
<?php echo $row_itens_vazio["obs_tab_itens_cot"];?>
</td>
<?php } ?>
</tr>
<?php } ?>
</tbody>
</table>
The variable
$resultado_itens_vazio
is receiving what data?– Don't Panic
Put to
query
for us.– Marlon Castro