Código PHP:
<table width="556" border="1" align="center" bordercolor="#FFFFFF">
<tr>
<td width="644"><span class="Estilo13"><u>SubSector de Aprendizaje </u></span></td>
</tr>
<tr>
<td width="644"><span class="Estilo2">Lenguaje y Comunicación</span></td>
<?=$lenguaje?>
<td width="40" bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num1= $rsl[0];
$variable1= intval($num1).substr( strstr($num1, "."), 0, 2);
echo $variable1;
?>
</strong></span></div></td>
</tr>
<tr>
<td><span class="Estilo2">Ingles</span></td>
<?=$ingles ?>
<td width="40" bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num2= $rsi[0];
$variable2= intval($num2).substr( strstr($num2, "."), 0, 2);
echo $variable2;
?>
</strong></span></div></td>
</tr>
<tr>
<td><span class="Estilo2">Matematicas</span></td>
<?=$matematicas ?>
<td width="40" bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num3= $rsma[0];
$variable3= intval($num3).substr( strstr($num3, "."), 0, 2);
echo $variable3;
?>
</strong></span></div></td>
</tr>
<tr>
<td><span class="Estilo2">Estudio y Comprensión del Medio </span></td>
<?=$comprencions ?>
<td width="40" bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num4= $rscm[0];
$variable4= intval($num4).substr( strstr($num4, "."), 0, 2);
echo $variable4;
?>
</strong></span></div></td>
</tr>
<tr>
<td><span class="Estilo2">Tecnología</span></td>
<td bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num5= $rst[0];
$variable5= intval($num5).substr( strstr($num5, "."), 0, 2);
echo $variable5;
?>
</strong></span></div></td>
</tr>
<tr>
<td><span class="Estilo2">Arte</span></td>
<?=$arte ?>
<td width="40" bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num6= $rsa[0];
$variable6= intval($num6).substr( strstr($num6, "."), 0, 2);
echo $variable6;
?>
</strong></span></div></td>
</tr>
<tr>
<td><span class="Estilo2">Educación Musical </span></td>
<?=$musica ?>
<td width="40" bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num7= $rsm[0];
$variable7= intval($num7).substr( strstr($num7, "."), 0, 2);
echo $variable7;
?>
</strong></span></div></td>
</tr>
<tr>
<td><span class="Estilo2">Educación Física</span></td>
<?=$edfisica ?>
<td width="40" bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num8= $rsed[0];
$variable8= intval($num8).substr( strstr($num8, "."), 0, 2);
echo $variable8;
?>
</strong></span></div></td>
</tr>
<tr>
<td><span class="Estilo2">Filosofía </span></td>
<?=$filosofia ?>
<td width="40" bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num9= $rsf[0];
$variable9= intval($num9).substr( strstr($num9, "."), 0, 2);
echo $variable9;
?>
</strong></span></div></td>
</tr>
</table>
<table width="311" border="1" align="center" bordercolor="#FFFFFF">
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td width="258"><span class="Estilo13">PROMEDIO PRIMER SEMESTRE 2005 </span></td>
<td width="37" bordercolor="#666666"><div align="center"><span class="Estilo2"><strong>
<?
$num10= ($num1+$num2+$num3+$num4+$num5+$num6+$num7+$num8+$num9)/ 9;
$num100= $num10;
$promfinal= intval($num100).substr( strstr($num100, "."), 0, 2);
echo $promfinal;
?>
</strong></span></div></td>
</tr>
</table>
<p> </p>
<span class="Estilo4">
</div>
</body>
</html>
aki termina el codigo de la pagina donde muestro las notas de los alumnos