I want to insert a result in mysql, i use this query:
$sql= "INSERT into {test} WHERE Id = $currentID (soortstage)VALUES('%s')";
that is the error:
* user warning:
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 =
(Soortstage)VALUES('132')'` at line 1
query: `INSERT into test WHERE Id =
(Soortstage)VALUES('132') in
C:\xampp\htdocs\testplanning\modules\planning\planning.module on line 425.`
* warning:
Invalid argument supplied for
foreach() in
`C:\xampp\htdocs\testplanning\includes\form.inc
on line 1213.`
Have someone a idea? Thanks!
$currentID? Seems to be null.INSERT INTO WHERE? Do you want an UPDATE or an INSERT?