![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
digo que debo indicarle al while por ejemplo no se me ocurre como
![U_U](http://static.forosdelweb.com/fdwtheme/images/smilies/nods.png)
mi codigo es :
Código PHP:
Ver original
<?php { ?> <table align="center" cellpadding="0" cellspacing="0" border="0" style="width:950px;padding:0;margin:0;"> <?php $sql2 = mysql_query("SELECT * FROM tablauL WHERE categorias = '$datos[categorias]' GROUP BY categorias"); { $sql3 = mysql_query("SELECT * FROM tablauL WHERE glosa = '$cat2[tipo]' AND nombres = '$datos[nombres]' GROUP BY tipo"); { $sql4 = mysql_query("SELECT SUM(monto) AS monto FROM tablauL WHERE categorias = '$cat2[categorias]' AND nombres = '$datos[nombres]' AND tipo = '$item[tipo]'"); { echo "<tr>"; $monto_final = "$mm[monto]"; echo "<td width=\"275\" height=\"30\">$datos[nombres]</td>"; echo "<td width=\"246\">$cat2[categorias]</td>"; echo "<td width=\"305\">$item[tipo]</td>"; echo "<td width=\"114\">$mm[monto]</td>"; $monto_final2 = ($monto_final2 + $monto_final); echo "</tr>"; } } } ?> </table> <?php } ?>
La consulta esta bien me sale como en tabla izquierda pero no hay caso que me salga la tabla derecha.
![](http://img207.imageshack.us/img207/5740/imagenan.jpg)