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=6' at line 5
Wat moet ik hiermee??
jacob_slomp
2005-07-05 22:25:57
$query = "UPDATE gastenboek SET
naam = '". $_POST['naam'] ."',
email = '". $_POST['email'] ."',
bericht = '". $_POST['bericht'] ."',
WHERE id=" .$_POST['id'];
moet worden:
$query = "UPDATE gastenboek SET
naam = '". $_POST['naam'] ."',
email = '". $_POST['email'] ."',
bericht = '". $_POST['bericht'] ."'
WHERE id=" .$_POST['id'];