Ver original<table><th><td></td></th><?php foreach( .... ) {?><tr><td> datos datos </td></tr><?php}?></table>