hallo,
versuche in eine tabelle etwas einzufügen das absolut nicht funktioniert so wie ich das gern hätte.
hier mein sql:
PHP-Code:
$sql = "INSERT INTO points WHERE id=$id (gesamt, klapp, stoppel, scheibe) VALUES('$gespunkte', '$kippges', '$stoppelges', '$scheibeges')";
hier der fehler dazu:
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 'WHERE id=7 (gesamt, klapp, stoppel, scheibe) VALUES('0', '0', '0', '0')' at line 1
eigenartig ist wenn ich anstatt $id einen wert eingebe funktioniert das ganze.
wie man aber im fehler sieht werden alle variablen richtig übergeben.
liegt es an meiner mysql und php versin?
mysql 5.1
php5
mfg
alex