my problem is that I cannot show the value of the user's gender that already has a value assigned, I want to show this in the select combo of the profile view, the select combo only shows me the default values but not the value already assigned to Username.
The Gender table has the values 1: Female, 2: Male, 3: Other
The user is assigned the value 2 (male), and the word "male" is what I want to show in the select menu as already selected when editing profile
The default option of the select should be Male, which is what the user has been assigned.
Thank you!
See I can think of something like this for your code, the logic would be something like this.
With this I make that when the condition is met in the if it is selected.