ahora me pregunto por qsue se imprime de lado y no hacia abajo el error eran los dos puntos del for
():
Código PHP:
<table width="650">
<tr>
<th class="td_qty">Mnoth</th>
<th class="td_qty">Nnumber</th>
<th>Percentage</th>
</tr>
<?php
for ($i=0; $i<count($res2);$i++): ?>
<td><?php echo $res2[0][0]['CREATDATE']; ?></td>
<td><?php echo $res2[0][0]['CANTIDAD']; ?></td>
<td><?php echo $res2[0][0]['percentage']; ?></td>
<?php endfor; ?>
<tr class="topbdr">
<td colspan="2" style="text-align: right"><strong>Total : </strong></td>
<td><strong><?php echo $total ?></strong></td>
</tr>
</table>