bi bakarmısınız.
if(isset($_POST['kuld'])) {
if ($_POST["k_sifre"]==""){
header('Location:index.php?kuld=bos');
$k_id=$_POST['k_id'];
$adminsor=mysql_query("select * from kullanici where k_id='$k_id'") ;
$admincek=mysql_fetch_assoc($adminsor);
$k_sifre1=$admincek['k_sifre'];
} elseif ($_POST["k_sifre"]=="$k_sifre1"){
$kulduzenle1=mysql_query("update kullanici set k_adi='".$_POST['k_adi']."',k_mail='".$_POST['k_mail']."' where k_id='$k_id'" );
if(mysql_affected_rows()){
header('Location:index.php?kuld=ok');
} else {
header('Location:index.php?kuld=no');
}
} elseif (!empty($_POST["k_sifre"]!==$k_sifre)) {
$k_sifremd5=md5($_POST['k_sifre']);
$kulduzenle2=mysql_query("update kullanici set k_adi='".$_POST['k_adi']."',k_mail='".$_POST['k_mail']."',k_sifre='".$k_sifremd5."' where k_id='$k_id'" );
if(mysql_affected_rows()){
header('Location:index.php?kuld1=ok');
} else {
header('Location:index.php?kuld1=no');
}
}
}