Good morning, I'm trying to get the data in a combo and I do not know if something fails me, you should show me the fixed options.
$pdo = new PDO('mysql:host=localhost;dbname=prueba', 'root', '');
$sql = "SELECT acro_subcategoria FROM tipodocumentos";
$stmt = $pdo->prepare($sql);
$stmt->execute();
$tipodocumentos = $stmt->fetchAll();
And this would be the select
<select>
<?php foreach ($tipodocumentos as $acro_subcategoria): ?>
<option value="<?= $acro_subcategoria['acro_subcategoria']; ?>"></option>
<?php endforeach; ?>
</select>