Bandprofil
Du hast noch kein Bandprofil angelegt.
Meine Anfragen
| Band | Datum | Status |
|---|---|---|
| = htmlspecialchars($bandName['name'] ?? 'Band #' . $request['band_id']) ?> | = htmlspecialchars($request['event_date']) ?> | = htmlspecialchars($request['status']) ?> |
prepare('SELECT * FROM bands WHERE user_id = :id'); $stmt->execute([':id' => $user['id']]); $band = $stmt->fetch(PDO::FETCH_ASSOC); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $stmt = db()->prepare('UPDATE bands SET name = :name, city = :city, genre = :genre, price = :price, description = :description, style_tags = :tags WHERE id = :id'); $stmt->execute([ ':name' => $_POST['name'], ':city' => $_POST['city'], ':genre' => $_POST['genre'], ':price' => (int) $_POST['price'], ':description' => $_POST['description'], ':tags' => $_POST['style_tags'], ':id' => $band['id'], ]); $message = 'Bandprofil aktualisiert (wartet ggf. auf Freigabe).'; $band = findBand((int) $band['id']); } } ?>
Rolle: = htmlspecialchars($user['role']) ?>
Du hast noch kein Bandprofil angelegt.
| Band | Datum | Status |
|---|---|---|
| = htmlspecialchars($bandName['name'] ?? 'Band #' . $request['band_id']) ?> | = htmlspecialchars($request['event_date']) ?> | = htmlspecialchars($request['status']) ?> |