Ik krijg volgende foutmelding:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'show) VALUES('','','','Ja')' at line 1
Normaal haal ik $show ook uit de POST op , maar voor test heb ik het nu direct gedaan .(maakt voor fout ook niks uit).
Als ik show uit de query verwijder is er niks aan de hand.
$title = $MySQLiconn->real_escape_string($_POST['title']);
$content = $MySQLiconn->real_escape_string($_POST['content']);
$datum = $MySQLiconn->real_escape_string($_POST['datum']);
// $datum_eu = $MySQLiconn->real_escape_string($_POST['datum_eu']);
$show='Ja';
$SQL = $MySQLiconn->query("INSERT INTO `$tabelnaam` (title,content,datum,show) VALUES('$title','$content','$datum','$show')");