';}
$afhent=$_GET['afhent'];
if($_GET['free']=="free"){
/* Attempt MySQL server connection. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
$link = mysqli_connect("localhost", "brudeboo_timeslot", "Bolledej2022", "brudeboo_timeslot");
// Check connection
if($link === false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
$sql = "UPDATE appscheduler_bookings SET booking_status='confirmed' WHERE uuid='$afhent'";
if(mysqli_query($link, $sql)){
echo "
Din booking er nu registreret, og vi har sendt dig en mail
";
} else {
echo "Der opdtod en fejl - kontakt os";
}
// Close connection
mysqli_close($link);
}
$succesJA=$_GET['succes'];
if($_GET['succes']!=""){
/* Attempt MySQL server connection. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
$link = mysqli_connect("localhost", "brudeboo_timeslot", "Bolledej2022", "brudeboo_timeslot");
// Check connection
if($link === false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
$sql = "UPDATE appscheduler_bookings SET booking_status='confirmed' WHERE uuid='$succesJA'";
if(mysqli_query($link, $sql)){
echo "
Din booking er nu registreret, og vi har sendt dig en mail
";
echo'
';
} else {
echo "Der opdtod en fejl - kontakt os";
}
// Close connection
mysqli_close($link);
}
?>