Cita:
<table align="center" cellpadding="5" border="1">
<tr>
<td><h4 class="style8">Correlativo</h4></td>
<td><h4 class="style8">Codigo</h4></td>
<td><h4 class="style8">Nombre</h4></td>
<td><h4 class="style8">Apellido</h4></td>
<td><h4 class="style8">Grado que Aspira</h4></td>
</tr>
<?php
$sqla = "select id_est,nombre_est,apellido_est,nombre from alumno as a, cursos as b where id_sede='$id_sede' and grado = '$id_curso' and modalidad = '$id_modalidad' and a.grado = b.id_curso order by apellido_est";
$resulta = @mysql_query($sqla, $con) or die(mysql_error());
$cont = @mysql_num_rows($resulta);
for($i=1;$i<=10;$i++){
while($row = @mysql_fetch_array($result)){
$a = $row['id_est'];
$b = $row['nombre_est'];
$c = $row['apellido_est'];
$d = $row['nombre'];
?>
<tr>
<td><span class="style7"><?php echo $i;} ?></span></td>
<td><span class="style7"><?php echo $a ?></span></td>
<td><span class="style7"><?php echo $b ?></span></td>
<td><span class="style7"><?php echo $c ?></span></td>
<td><span class="style7"><?php echo $d ?></span></td>
<?php } ?>
</table>
<tr>
<td><h4 class="style8">Correlativo</h4></td>
<td><h4 class="style8">Codigo</h4></td>
<td><h4 class="style8">Nombre</h4></td>
<td><h4 class="style8">Apellido</h4></td>
<td><h4 class="style8">Grado que Aspira</h4></td>
</tr>
<?php
$sqla = "select id_est,nombre_est,apellido_est,nombre from alumno as a, cursos as b where id_sede='$id_sede' and grado = '$id_curso' and modalidad = '$id_modalidad' and a.grado = b.id_curso order by apellido_est";
$resulta = @mysql_query($sqla, $con) or die(mysql_error());
$cont = @mysql_num_rows($resulta);
for($i=1;$i<=10;$i++){
while($row = @mysql_fetch_array($result)){
$a = $row['id_est'];
$b = $row['nombre_est'];
$c = $row['apellido_est'];
$d = $row['nombre'];
?>
<tr>
<td><span class="style7"><?php echo $i;} ?></span></td>
<td><span class="style7"><?php echo $a ?></span></td>
<td><span class="style7"><?php echo $b ?></span></td>
<td><span class="style7"><?php echo $c ?></span></td>
<td><span class="style7"><?php echo $d ?></span></td>
<?php } ?>
</table>
De antemano gracias