I have a select
that shows the departments:
<select name="dpto" id="dpto">
<option value="3">ATLANTICO</option>
<option value="12">CESAR</option>
</select>
What I need is that when selecting X department, make a query to the Database and show me the data in the following way:
<span class="tipoboletin">Tipo Boletin: <b><?php echo $B_Tipo_Boletin ?></b></span>
This is the MySQL query I have:
SELECT * FROM boletin WHERE Departamento = '" . $idDpto . "'"
Where $idDpto
would be the value
of the department you select.