I have a problem that I could not resolve in php, I have a field varchar
in MySQL
with accentuation, I make a rescue of it and use htmlentities
so that the string gets the correct accent.
I need to compare the variable coming from the bank and mark a radio field if the condition is true, but I can not, what I have and this:
Variable Redemption:
$Motivo = htmlentities($row_DocContratacao['MotivoContratacao']);
Value Comparison
<input type="radio" name="Motivo" id="motivo-4" value="Recontratação"<?php if ($Motivo=="Recontratação") echo ' checked="checked"'; ?> />
The value redeemed is Recontratação
but the radio field is not marked.