prepare("UPDATE installations SET status = ? WHERE id = ?"); $stmt->execute([$status, $id]); $_SESSION['message'] = 'Status atualizado com sucesso!'; $_SESSION['message_type'] = 'success'; } catch (PDOException $e) { error_log("Status update error: " . $e->getMessage()); $_SESSION['message'] = 'Erro ao atualizar o status.'; $_SESSION['message_type'] = 'danger'; } } } header('Location: index.php'); exit;