如何下拉菜单选择过滤数据查询?

<?PHP
$sql = "SELECT id as id, etkinlik_adi,etkinlik_tarihi,adiniz,soyadiniz,eposta,firma,departman,telefon,faks,cep_telefon,secim1,secim2,tarih FROM  etkinlikler  order by id ";
$result = mysql_query($sql);
if (!$result) {
    echo "Could not successfully run query ($sql) from DB: " . mysql_error();
   exit;
}
if (mysql_num_rows($result) == 0) {
    echo "No rows found, nothing to print so am exiting";
    exit;
}
while ($row = mysql_fetch_assoc($result)) {
$id=$row['id'];
$etkinlik_adi=$row["etkinlik_adi"];
$etkinlik_tarihi =$row["etkinlik_tarihi"];
$adiniz = $row["adiniz"];
$soyadiniz = $row["soyadiniz"];
$eposta = $row["eposta"];
$firma = $row["firma"];
$departman = $row["departman"];
$telefon = $row["telefon"];
$faks = $row["faks"];
$cep_telefon = $row["cep_telefon"];
$secim1 = $row["secim1"];
$secim2 = $row["secim2"];
$tarih = $row["tarih"];
?
}
mysql_free_result($result); 
?>

How to select filter data query with dropdownmenu results ? How to filter the data based on the selected column are query?(for example adiniz, soyadiniz, tarih ? )

If you have a select menu for adiniz like this

<select name='adniz'>
<option value="$name1"><? php echo $name1;?></option>
<option valus="$name2"><?php echo $name2;?></option>
...
</select>

the query should be

$sql = "SELECT id as id, etkinlik_adi,etkinlik_tarihi,adiniz,soyadiniz,eposta,firma,departman,telefon,faks,cep_telefon,secim1,secim2,tarih FROM  etkinlikler  WHERE adiniz='".$_POST['adiniz']."' order by id ";