$id = 1;
$cek = mysql_query("select * from ayarlar where id='$id'");