
BD notas
------------------
iddocente (int)auto increment
nomdocente (varchar 50)
clave (varchar 12)
foto (varchar 30) -------- foto.gif
--------------------
este es el ingreso .html
-----------------------------------------------------------------------
<form name="form1" method="post" action="ver.php">
<p><span class="Estilo5">CODIGO</span>
<input name="login" type="text" id="login">
<input type="submit" name="Submit" value="ENTRAR">
</form>
-------------------------------------------------------------------------
ver .php
<?php
$conexion=mysql_connect("localhost","root","");
mysql_select_db("notas",$conexion);
$login = $_GET['iddocente'];
//$strselect="select iddocente,foto from docentes where iddocente";
$strselect="select iddocente,foto from docentes where iddocente='".$login."'order by iddocente asc";
$res=mysql_query($strselect,$conexion);
$myrow=mysql_fetch_array($res);
if($myrow){
echo "<center><i>LOS PRIMEROS TRES DISCOS DE <b>IRON MAIDEN</b></i></center><br>";
echo "<table border='1' align='center'>";
do{
echo "<tr><td><img src='fotos/".$myrow[foto]."'></td>";
echo "<td><b>DISCO:</b>".$myrow['iddocente']."<br>".$myrow['descri pcion']."</td>";
// echo "<td><b>Precio:</b>".$myrow['precio']."</td></tr>";
}while($myrow=mysql_fetch_array($res));
echo "</table>";
}
else{
echo "No se han encontrado resultados en la busqueda";
}
mysql_close($conexion);
?>