<?php

$veri = $_GET["select"];

$ara = mysql_query("select * from tablo adi where kan = $veri");

while($bul = mysql_fetch_array($ara))
{
echo '$bul[Ad]';
echo '$bul[Soyad]';
}

?>