<?
@mysql_connect("localhost","","");
@mysql_select_db("ilhan");
$liste=mysql_query("select * from ogrgir where nosu like'$num'");
if (mysql_error())
{
echo ("<h2>Hata olustu! </h2><br> Hata:");
echo mysql_error();
exit();
}
?>
<html>
<body bgcolor="Aqua">
<?
while ($sonuc=mysql_fetch_array($liste)):
$adi=$sonuc["adi"];
$soyadi=$sonuc["soyadi"];
$nosu=$sonuc["nosu"];
?>
<table align="center">
<tr>
<td>Adı :</td>
<td><? echo "$adi" ?></td>
</tr>
<tr>
<td>Soyadı :</td>
<td><? echo "$soyadi" ?></td>
</tr>
<tr>
<td>Numarası :</td>
<td><? echo "$nosu" ?></td>
</tr>
</table>
<? endwhile; ?>
</body>
</html>