my problem was that when i tried to put a <table> or a <tr> tag between the php code didn´t recognized as html, so i put them at the top but it wasn´t working. right now i´m working with an other script, but it keeps with the same problem. [code=php:0]<table align="center"width="400" border="4" cellpadding="2" cellspacing="0" bordercolor="#FF3300" bgcolor="#FF6600" summary="Un Listado de todos los Tecnicos almacenados en la base de datos"> <caption align="center" class="TEXTO2"> Técnicos Base de Datos </caption> <?php echo '<table>' ; while ($row_rstTecnic = mysql_fetch_assoc($rstTecnic)){ echo '<tr> <td>', $row_rstTecnic['NomTecnic'] ,'</td>'; if($row_rstTecnic['EstatTecnic']=="A"){ echo '<td><a href="tecnic.php?tecnic=', $row_rstTecnic['NumTecnic'] ,'" title="View details for ', $row_rstTecnic['NomTecnic'] ,'">see</a></td>'; }else{ echo '</td> <td>'; } echo '</tr>'; } echo '</table>'; ?>[/code]