Aber ich finde keinen Fehler und ich habe dieses script schon öfter erfolgreich verwendet:
<?php
$dbc = mysqli_connect('localhost', '000232_0012', 'xxxxxxxx', '000232_0012')
or die('Error connecting to MySQL server.');
$vorname = $_POST['vorname'];
$nachname = $_POST['nachname'];
$email = $_POST['email'];
$alter = $_POST['alter'];
$wohnort = $_POST['wohnort'];
$plz = $_POST['plz'];
$warum = $_POST['warum'];
$query = "INSERT INTO alma_datenbank (vorname, nachname, email, alter, wohnort, plz, warum) VALUES ('$vorname', '$nachname', '$email', '$alter', '$wohnort', '$plz','$warum')";
mysqli_query($dbc, $query)
or die(mysqli_error($dbc));
mysqli_close($dbc);
?>
MySQL - 5.0.67
Kann mir jemand helfen?
Der Komplette error ist:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'alter, wohnort, plz, warum)
Danke
Wolfmarter
<?php
$dbc = mysqli_connect('localhost', '000232_0012', 'xxxxxxxx', '000232_0012')
or die('Error connecting to MySQL server.');
$vorname = $_POST['vorname'];
$nachname = $_POST['nachname'];
$email = $_POST['email'];
$alter = $_POST['alter'];
$wohnort = $_POST['wohnort'];
$plz = $_POST['plz'];
$warum = $_POST['warum'];
$query = "INSERT INTO alma_datenbank (vorname, nachname, email, alter, wohnort, plz, warum) VALUES ('$vorname', '$nachname', '$email', '$alter', '$wohnort', '$plz','$warum')";
mysqli_query($dbc, $query)
or die(mysqli_error($dbc));
mysqli_close($dbc);
?>
MySQL - 5.0.67
Kann mir jemand helfen?
Der Komplette error ist:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'alter, wohnort, plz, warum)
Danke
Wolfmarter
Kommentar