0) { $user = mysqli_fetch_assoc($result); } else { echo "User not found."; exit(); } ?>