PHP beginner |
|
Hallo,
Ik heb in de volgende code een syntax error, maar ik zie niet waar.
Code:
$nr = "1";
$query5 = "UPDATE cms_aanbieding_vd_week SET product_id='".$_GET['id']."',update='".$nr."' WHERE id='".$nr."'";
mysql_query($query5) or die (mysql_error());
$nr = "1"; $query5 = "UPDATE cms_aanbieding_vd_week SET product_id='".$_GET['id']."',update='".$nr."' WHERE id='".$nr."'";
error:
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 'update='1' WHERE id='1'' at line 1
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 'update='1' WHERE id='1'' at line 1
|