trim($_GET['search'] ?? ''), 'game' => trim($_GET['game'] ?? ''), 'tag' => trim($_GET['tag'] ?? ''), ]; $sql = "SELECT id, title, game, tag, author, created_at FROM forum_threads WHERE 1=1"; $params = []; if ($filters['search']) { $sql .= " AND (title LIKE :search OR body LIKE :search)"; $params[':search'] = '%' . $filters['search'] . '%'; } if ($filters['game']) { $sql .= " AND game = :game"; $params[':game'] = $filters['game']; } if ($filters['tag']) { $sql .= " AND tag = :tag"; $params[':tag'] = $filters['tag']; } $sql .= " ORDER BY created_at DESC"; $stmt = $pdo->prepare($sql); $stmt->execute($params); $threads = $stmt->fetchAll(); $games = $pdo->query("SELECT DISTINCT game FROM forum_threads ORDER BY game")->fetchAll(PDO::FETCH_COLUMN); $tags = $pdo->query("SELECT DISTINCT tag FROM forum_threads WHERE tag IS NOT NULL AND tag != '' ORDER BY tag")->fetchAll(PDO::FETCH_COLUMN); include __DIR__ . '/includes/header.php'; ?>

Community Forums

Patch reaction, class strategy, and loot discussions.

Start thread

No threads yet

Start a discussion about the latest patch or class strategy.

Start thread

By ยท

Open thread