SELECT OPTION PHP
Publicado por IVAN (12 intervenciones) el 14/04/2020 15:59:37
Estoy tratando de llenar un Select Option con php y PDO pero me sale este error:
Notice: array to string conversion
el código es este:
Notice: array to string conversion
el código es este:
1
2
3
4
5
6
7
<select name="ididentificacion" id="selectipoid">
<?php while ($data=$resultado1->fetchAll(\PDO::FETCH_ASSOC)):;?>
<option value="">
<?php echo $data[1]; ?>
</option>
<?php endwhile; ?>
</select>
Valora esta pregunta


0