0
<div class="form-group">
<label for="inputCNPJ">Atividade Primária</label>
<br />
<select name="id_cnae" class="browser-default custom-select">
<option value=0>Atividade Primária</option>
<?php
$sql = mysqli_query($conn, "SELECT id_cnae, descricao FROM CNAE") or die(mysqli_error($conn));
while($aux = mysqli_fetch_assoc($sql)) {
?>
<option value='<?php echo $aux["id_cnae"]?>'><?php echo $aux["descricao"] ?>
</option>
<?php
}
?>
</select>
</div>
I’m having problems at the front, the result comes out with symbols instead of Ç and accentuation, my html already has UTF-8
Dear Jonas, you have to adjust the connection too, the structure of the bank (maybe it is already ok) and save your . php in UTF-8 without "B O M". It’s detailed in the question I wrote in your
– Guilherme Nascimento