Hallo
ich habe hier ein kleines problem mit dem update einer mysql tabelle
hier mal der code
PHP-Code:
$sql="UPDATE table
SET field1 = '".$_POST['f1']."',
field2 = '".$_POST['f2']."',
field3 = '".$_POST['f3']."',
field4 = '".$_POST['f4']."',
field5 = '".$_POST['f5']."'
WHERE id=".$id;
field1 -5 sind von typ varchar.
post f1-f3 enthalten strings
und f4 und f5 übergeben zahlen.
hier mal die fehlermeldung
Zitat:
|
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 'field1 = '', field2 = '', field3 = '', field4 = '',
|
hab da bestimmt was übersehen aber schonmal danke für eure hilfe