I have the variable
$sql1 .= "Brukertype";
Which gets information set from an already-filled textbox. It can either have the value Administrator
or the value Iskjører
.
What is the best way to change these values before inserting them into SQL?
The Administrator
value should get changed to the value 1
and Iskjører
gets changed to the value 2
.
I can't use a select function (dropdown list) on the question because it needs to be enabled/disabled on my command.