Ihaveanemployeeregistrationscreen,whenIeditapersonIcannotgetsettheoptionthatisregisteredinthebank.
obs.theoptionscomefromthebankandnotfromthehtmlform.
ForexampleIhaveapersonwhoisregisteredas"sales" plus when I edit it list as "accounting" which would be the first record of my local table.
code:
<tr>
<td align="right"><label for="txtColaborador_local">Local: </label></td>
<td align="left">
<select class="form-control" name="local_id" required="required" value="<?php echo $row['local']; ?>">
<?php while($local = mysql_fetch_array($query_local)) { ?>
<option value="<?php echo $local['local_id'] ?>"><?php echo $local['nome'] ?></option>
<?php } ?>
</select>
</td>
</tr>