Hi, sorry for the poor example.
I have the problem, once again,with the superimpose between results of queries. The queries are int the top of the document.
How I can prevent this problem?.
This is a example (part of my code):
<table width="600" border="0">
<?php
if ($valida_filas_13!=0)
{
?>
<thead>
<tr>
<td style="text-align: center; width: 10px;"><strong>N°</strong></td>
<td style="text-align: center; width: 50px;"><strong>N° DOC</strong></td>
..............
</tr>
</thead>
<?php
$contador=1;
while ($row13=mysql_fetch_array($result13))
{
?>
<tr>
<td style="text-align: center; width: 10px;"><?php echo $contador;?></td>
<td style="text-align: center; width: 50px;"><?php echo $row13["ndocban"];?></td>
............
</tr>
<?php
$contador++;
}
}
else
{
?>
<tr>
<td><h1>NO REGISTRA</h1></td>
</tr>
<?php
}
?>
</table>
<hr style="border: 1px ridge #336699;" />
<br /><br />
<font style="text-align: center;"><strong>CONDECORACIONES</strong></font>
<br />
<hr style="border: 1px dashed #336699;" />
<table width="600" border="0">
<?php
if ($valida_filas_14!=0)
{
?>
<thead>
<tr>
<td align="center" width="10"><strong>N°</strong></td>
<td align="center" width="50"><strong>N° DOC</strong></td>
..........
</tr>
</thead>
<?php
$contador=1;
while ($row14=mysql_fetch_array($result14))
{
?>
<tr>
<td align="center" width="10"><?php echo $contador;?></td>
<td align="center" width="50"><?php echo $row14["ndoccon"];?></td>
.........
</tr>
<?php
$contador++;
}
}
else
{
?>
<tr>
<td><h1>NO REGISTRA</h1></td>
</tr>
<?php
}
?>
</table>
Fichier joint : Fichier joint : 
(example.JPG)