0
How do I save the id of a different table within 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 the registration of a student!
That depends on your
query
if she has left Join to class– Guilherme Lautert