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, email = :email, city = :city, genre = :genre, price = :price, description = :description, style_tags = :tags WHERE id = :id'); $stmt->execute([ ':name' => $_POST['name'], ':email' => $_POST['email'] ?? null, ':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']); } } ?> Mein Bereich – <?= SITE_NAME ?>
← Startseite

Hallo

Rolle:

Bandprofil

Du hast noch kein Bandprofil angelegt.

Meine Anfragen

BandDatumStatus