Hi
Ich hab wieder mal ein Problem mit meinem query und zwar bekomme ich immer diese Meldung:
und mein query sieht so aus:
Ich hoffe ihr könnt mir helfen.
Thx
Ich hab wieder mal ein Problem mit meinem query und zwar bekomme ich immer diese Meldung:
Code:
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 'use, street, place, country, note, profile, user, type_of_contac
PHP:
$sql = 'INSERT INTO '.$mysql_private_clients.'(salutation, academic_title, surname, first_name, birthday, national_insurance_number, occupation, phone_number, occupational, mobile_phone, fax, email, type, number, date, authority, account_number, bank_code, bank, citizenship, use, street, place, country, note, profile, user, type_of_contact) VALUES (
"'.mysql_real_escape_string($_POST['salutation']).'",
"'.mysql_real_escape_string($_POST['academic_title']).'",
"'.mysql_real_escape_string($_POST['surname']).'",
"'.mysql_real_escape_string($_POST['first_name']).'",
"'.mysql_real_escape_string($_POST['birthday']).'",
"'.mysql_real_escape_string($_POST['national_insurance_number']).'",
"'.mysql_real_escape_string($_POST['occupation']).'",
"'.mysql_real_escape_string($_POST['phone_number']).'",
"'.mysql_real_escape_string($_POST['occupational']).'",
"'.mysql_real_escape_string($_POST['mobile_phone']).'",
"'.mysql_real_escape_string($_POST['fax']).'",
"'.mysql_real_escape_string($_POST['email']).'",
"'.mysql_real_escape_string($_POST['type']).'",
"'.mysql_real_escape_string($_POST['number']).'",
"'.mysql_real_escape_string($_POST['date']).'",
"'.mysql_real_escape_string($_POST['authority']).'",
"'.mysql_real_escape_string($_POST['account_number']).'",
"'.mysql_real_escape_string($_POST['bank_code']).'",
"'.mysql_real_escape_string($_POST['bank']).'",
"'.mysql_real_escape_string($_POST['citizenship']).'",
"'.mysql_real_escape_string($_POST['use']).'",
"'.mysql_real_escape_string($_POST['street']).'",
"'.mysql_real_escape_string($_POST['place']).'",
"'.mysql_real_escape_string($_POST['country']).'",
"'.mysql_real_escape_string($_POST['note']).'",
"'.mysql_real_escape_string($_POST['profile']).'",
"'.mysql_real_escape_string(test).'",
"'.mysql_real_escape_string($_POST['type_of_contact']).'")';
mysql_query($sql) OR die(mysql_error());
Ich hoffe ihr könnt mir helfen.
Thx