alert("You have successfully edit the user!"); window.location.href = "../admin_panel.php"; '; } else { echo "Error updating user information: " . mysqli_error($con); } } ?>