0
In my script, I do the query, but there are some fields that are empty and in foreach
empty spaces. How do I only take the data you 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 } ?>
I really like the ternary conditional operator !
– user60252