Hallo,
bekomme bei einer insert into Anweisung:
immer folgende Fehlermeldung:
INSERT INTO tbl_testtabelle (Name, Alter) VALUES ('4', '5')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) VALUES ('4', '5')' at line 1
kann mir jemand helfen??
Vielen Dank ...
bekomme bei einer insert into Anweisung:
PHP-Code:
$strSQL = "INSERT INTO tbl_testtabelle (";
$strSQL = $strSQL . "Name, ";
$strSQL = $strSQL . "Alter) ";
$strSQL = $strSQL . "VALUES (";
$strSQL = $strSQL . "'" . mysql_real_escape_string($_POST['name']) . "', ";
$strSQL = $strSQL . "'" . mysql_real_escape_string($_POST['alter']) . "')";
echo $strSQL;
mysql_query($strSQL) or die (mysql_error());
mysql_close();
INSERT INTO tbl_testtabelle (Name, Alter) VALUES ('4', '5')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) VALUES ('4', '5')' at line 1
kann mir jemand helfen??
Vielen Dank ...

Kommentar