0 ? " AND sc.spieler_id = :pid " : "") . " WHERE 1=1 "; if ($filterTypId > 0) { $sql .= " AND sp.typ_id = :tid "; } $sql .= " GROUP BY sp.id ORDER BY sp.titel ASC"; $stmt = $pdo->prepare($sql); $params = ['fid' => $filterPlayerId]; if ($filterPlayerId > 0) { $params['pid'] = $filterPlayerId; } if ($filterTypId > 0) { $params['tid'] = $filterTypId; } $stmt->execute($params); $inventory = $stmt->fetchAll(); // Daten für die Filter-Dropdowns $spieler = $pdo->query("SELECT * FROM spieler ORDER BY name ASC")->fetchAll(); $typen = $pdo->query("SELECT * FROM game_typen ORDER BY bezeichnung ASC")->fetchAll(); ?> EXIT - Gesamtliste

📝 Sammlungs-Übersicht

Bild Titel ↕ Level ↕ Bestwert ↕ Besitzstatus

0) { echo "{$row['best_sterne']} ★"; } elseif ($row['anzahl_scores'] > 0) { echo "Gespielt"; } else { echo "-"; } ?> 0): $st = $row['einzel_status'] ?: 'nicht besitzt'; $class = ($st == 'besitzt') ? 'st-besitzt' : (($st == 'verkauft') ? 'st-verkauft' : 'st-keins'); echo "".strtoupper($st).""; else: if ($row['besitz_info']) { foreach (explode('||', $row['besitz_info']) as $t) { $parts = explode(': ', $t); if(count($parts) < 2) continue; list($tn, $ts) = $parts; $dot = ($ts == 'besitzt') ? '#27ae60' : '#f39c12'; echo "$tn ($ts)"; } } else { echo "-"; } endif; ?>