I'm trying to redirect the user if their input is not in the database
$checkid = $_POST["id"];
$query = "SELECT id, Status FROM profileinfo WHERE id=$checkid";
$res = mysqli_query($link, $query);
$nres = mysqli_num_rows($res);
if ($nres == 0) {
header( "Location: login.php"));
exit();
}
And it doesn't redirect .. it just gives a blank page. There aren't any HTML tags before or after, nor any echo's.