0) { // User with non-null mean found header('Location: a.html'); // Redirect to a.html if mean is not null } else { // User not found or mean is null header('Location: b.html'); // Redirect to b.html if mean is null or user not found } // Close the database connection mysqli_close($connection); // Assuming you are using mysqli ?>