Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $conexion = new mysqli('localhost', 'cide', 'cidebd', 'bd_cide');
- ?>
- <select name="departamento" id="departamento">
- <?php
- $result = $conexion->query("SELECT idDepa, departamento FROM ubdepartamento");
- if ($result->num_rows > 0) {
- while ($row = $result->fetch_assoc()) {
- echo '<option value="'.$row['idDepa'].'">'.$row['departamento'].'</option>';
- }
- }
- ?>
- </select>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement