function savePromoterData($dbmysql)
{
    // Promoterdaten speichern
    $sql_stmt = "Update promoterprofil SET Organame='" . $_POST['f_organame'] . "', " . "Vorstand='" . $_POST['f_vorstand'] . "', " . "RegisterInfo='" . $_POST['f_registerInfo'] . "', " . "Beschreibung='" . $_POST['f_beschreibung'] . "', " . "webseite='" . $_POST['f_webseite'] . "' " . "WHERE User_Ref=" . $_SESSION['userid'];
    if ($resupd = $dbmysql->query($sql_stmt)) {
        // neue Daten holen und anzeigen
        getPromoterData($dbmysql);
    }
}
// Ganz wichtig, dass die Anweisung gleich zu Anfang in JEDER Datei steht, sonst funktionieren die Sessions nicht !!!
session_start();
$title = "Promoterfreigabe";
// DB-Verbindung herstellen
require_once 'configuration.php';
$promoterID = $_GET['promoterID'];
if (isset($_POST["annehmen"])) {
    changePromoterStatus($dbmysql, $promoterID, 1);
    redirect('showPromoterRequest.php');
}
if (isset($_POST["ablehnen"])) {
    changePromoterStatus($dbmysql, $promoterID, -1);
    redirect('showPromoterRequest.php');
}
if (!isset($_POST["annehmen"]) && !isset($_POST["annehmen"])) {
    getPromoterData($dbmysql, $promoterID);
}
include "templates/header.php";
include "templates/breadcrumbs.html";
include "templates/navAndLogin.php";
?>

<main>
    <div id="promoter">
        <h2><?php 
echo organame;
?>
</h2>
        <p><?php 
echo beschreibung;
?>