prepare("DELETE FROM anggota_keluarga WHERE id=?"); $stmt->bind_param('i', $id); if ($stmt->execute()) { echo 'success'; } else { http_response_code(500); echo 'Gagal: ' . $stmt->error; } $stmt->close(); ?>