2
I have a select in which it is completed through a bank query:
<select class="form-control" name="select_cidades">
<option>Selecione a Cidade</option>
<?php
$result_cidades = "SELECT * FROM cidades";
$resultado = mysqli_query($conn, $result_cidades);
while($row_cidades = mysqli_fetch_assoc($resultado)){
?>
<option value="<?php echo $row_cidades['id']; ?>"> <?php echo $row_cidades['nome']; ?>
</option>
<?php
}
?>
</select>
The problem is that cities that have accents are appearing symbol ? I couldn’t find any function that cleans accents in an array. Does anyone have any?
The second one worked. I didn’t know I had to use Ncode in php, so I only declared in html it already worked accent ahahh thanks!
– veroneseComS