-1
After a SQL i have how to return this record:
// Dados
$cores = "amarelo, branco, azul, verde";
I would like to set up a select where the content of $cores
as follows:
<select name="">
<option value="amarelo">amarelo</option>
<option value="branco">branco</option>
<option value="azul">azul</option>
<option value="verde">verde</option>
</select>
Are you using any framework or pure PHP? You can use
echo
s to generate HTML?– Guilherme Portela
I’m using pure PHP !!!
– Marcos Vinicius
Use a explode followed by a loop around html...
– KaduAmaral