ThefunctionObtem_Todas_Meta
returnsthequeryofthedatabase,Imaketheassociationgettheid
thatIneedandsendbytheform,butthevalueIselectedisnotsentcorrectlybecauseitsendsthelastonevalueandsometimesthefirstoftheoption
list.
<selectname="opcaometa">
<?php
$dados = Obtem_Todas_Meta();
while ($resultado = mysqli_fetch_array($dados)){ ?>
<option value="3"><?php echo $resultado['id_met']."-".$resultado['titulo_met']; ?>
</option>
<?php }?>
</select>