$bak= mysql_query("select * from kayıt where veri = '$veri'")); if (mysql_num_rows($bak) == '0') { header ("Location:yoneliceksayfa.php"); }