In diesem Block von Code, wo stelle ich mysqli_real_escape_string()?PHP und MySQL Formular senden
Oder wenn Sie eine bessere Möglichkeit haben, den ganzen Block zu schreiben, bin ich interessiert zu hören.
<?php
$title = ($_POST["title"]);
$date = ($_POST["date"]);
$content = ($_POST["content"]);
$query = "INSERT INTO months (";
$query .= " title, date, content ";
$query .= ") VALUES (";
$query .= " '{$title}', '{$date}', '{$content}' ";
$query .= ")";
mysqli_query($connection, $query); ?>
Danke Phillipp – benjiman