I have a form that gives the data to this File. I checked that the data comes in correctly and it does. I have connection to my database but the code isn't sending it to the database. Why isn't it working?
<?php
session_start();
include_once("includes/db.php");
if(isset($_POST['produkt']) && isset($_POST['größe']) && isset($_POST['name']) && isset($_POST['telefonnummer']) && isset($_POST['straße']) && isset($_POST['postleitzahl']) && isset($_POST['ort'])) {
$produkt = $_POST['produkt'];
$größe = $_POST['größe'];
$name = $_POST['name'];
$telefonnummer = $_POST['telefonnummer'];
$straße = $_POST['straße'];
$postleitzahl = $_POST['postleitzahl'];
$ort = $_POST['ort'];
$sql_store = "INSERT into bestellungen (id, produkt, größe, name, telefonnummer, straße, postleitzahl, ort) VALUES (NULL, '$produkt', '$größe', '$name', '$telefonnummer', '$straße', '$postleitzahl', '$ort')";
$sql = mysqli_query($db, $sql_store);
}
?>