'$profesor' es el usuario con el que ingresa el docente.
Código PHP:
<?php
$n=0;
$pa=mysql_query("SELECT * FROM exam_15_1 WHERE usu_docente='$profesor' ORDER BY alumno");
while($row=mysql_fetch_array($pa)){
$cod_exam=$row['id'];#5
$n++;
?>
<td bodercolor="000000"width="48" ><?php echo $n; ?></td>
<td width="162" ><?php echo $row['cod_alum']; ?></td>
<td colspan="2" cellpading="4" ><?php echo $row['alumno']; ?></td>
<td ><?php echo $row['eva_per']; ?></td>
<td ><?php echo $row['parcial']; ?></td>
<td ><?php echo $row['final']; ?></td>
<td ><?php
$num1=$row['eva_per'];
$num2=$row['parcial'];
$num3=$row['final'];
$prom=(($num1*0.3)+($num2*0.35)+($num3*0.35));
echo round("$prom");
?></td>
<td class="style2"><div align="center"><a href="modificar_nota.php?cod=<?php echo $row["id"]?>$nom=<?php echo $row["id"]?>">Modificar</a></div></td>
</tr>
<tr>
<td bordercolor="000000"width="48" > </td>
<td width="162" > </td>
<td colspan="2" cellpading="4" > </td>
<td > </td>
<td > </td>
<td > </td>
<td > </td>
<td></td>
</tr>
<?php } ?>