I have a variable $Altgeraet it contains “OK” or “NOK”.
I have an mysql field called Status_Altgeraet in the table zuordnung. So now I want to UPDATE or SET the field based on the variable.
This is what I tried:
$sql_Update = "UPDATE zuordnung SET Status_Altgeraet = ".$Altgeraet"";
mysql_query($sql_Update);
Can you give me tips how to solve this? I’m a php beginner.
You missed quotes around the string input and a
.concat at the end of your line: