if(mysql_affected_rows($ayarkaydet)) { header ("Location:../ayarlar.php"); } else { header ("Location:../ayarlar.php"); }