error loading information in select

0

I have this code that would have to load a select and just below one would have a textarea, however, after I placed the php code to fill the select, my textarea disappeared and I can not identify the reason.

<?php $query = mysql_query("SELECT id, descricao FROM produto"); ?>
<div class="form-group">
    <label for="produto" class="col-sm-2 control-label">Produto</label>
        <div class="col-sm-10">
            <select class="form-control" name="produto" id="produto">
                <option>Selecione...</option>
                <?php while($prod = mysql_fetch_array($query)) { ?>
                <option value="<?php echo $prod['id'] ?>"><?php echo $prod['descricao'] ?></option>
                <?php } ?>
            </select>
        </div>
</div>
<div class="form-group">
    <label for="pessoaObservacoes" class="col-sm-2 control-label">Observações</label>
        <div class="col-sm-10">
            <textarea class="form-control" name="pessoaObservacoes" id="pessoaObservacoes" placeholder="Observações" rows="3"></textarea>
        </div>
</div>
    
asked by anonymous 15.12.2017 / 03:02

0 answers