In my script, I do the query, however there are some fields that are empty and in foreach
are empty spaces. How do I just get the data they have filled?
<?php
$consulta = $pdo->query("SELECT * FROM ws_so_wind WHERE ws_so_wind.id_soft = ws_soft_pos_contra.id_soft ");
foreach ($consulta as $pos) { ?>
<li><?= $pos['pos']; ?></li>
<?php } ?>