How do I save the id of a different table inside a select?
Code below
<div class="medium">
<span>
<select name="turma">
<option>Selecione a Sala</option>
<?php
do {
?>
<option> <?php echo $exibe['sala'] ?> </option>
<?php } while ($exibe = mysql_fetch_assoc($sql)) ?>
</select>
<span class="icon-place"></span>
</span>
</div>
Class is a different table, the complete form is for a student's registration!