Error: You have an error in your SQL syntax near 'abteilung_fk=16 WHERE pk_peripheral=23' at line 1
An was liegt das??
PHP-Code:
If ($pk_peripheral) {
If ($cboAbteilung AND $cboSystem) {
$strSQL = "UPDATE peripherals SET fk_asset=$cboSystem abteilung_fk=$cboAbteilung WHERE pk_peripheral=$pk_peripheral";
$result = dbquery($strSQL);
$strError = "Peripheral updated successfully.";
} ElseIf ($cboAbteilung == "spare") {
$strSQL = "UPDATE peripherals SET fk_asset=0, sparePart=1 WHERE pk_peripheral=$pk_peripheral";
$result = dbquery($strSQL);
$strError = "Peripheral updated successfully.";
} Else {
buildAbteilungSystemSelect($cboAbteilung, $cboSystem);
Kommentar