alert('Data berhasil diperbarui!'); window.location='index.php';"; } else { echo "Gagal mengupdate data: " . mysqli_error($conn); } } ?>