Vernota
- 1. <html>
<head>
<title>Editar Alumnos</title>
</head>
<body background="fondo.jpg" >
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
<?php
mysql_connect("localhost", "root") or die(mysql_error());
mysql_select_db("cep" ) or die(mysql_error());
$result=mysql_query("select * from alumnes");
?>
<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1 BGCOLOR="#0B2161" align=center >
<TR><TD> <B>DNI</B></TD> <TD> <B>NomComplet</B> </TD>
<TD> <B>ver notas</B> </TD></TR>
<?php
while($row = mysql_fetch_array($result)) {
printf("<tr><td> %s</td><td> %s </td><td><a href="ver.php?
id=$row[DNI]">ver notas</a></td></tr>", $row["DNI"],$row["NomComplet"],
$row["Telefon"]);
}
mysql_free_result($result);
mysql_close();
?>
</table>
<p align=center>
<button><a href="lista2.html" style="color: #FF0000">Salir</a></button>
</p>
</body>
</html>