2
<table border="1">
<?php
foreach($arrayReturn['qsa'] as $value){
?>
<tr>
<td>NOME:</td>
<td><?=$value['qual'];?></td>
<td><?=$value['nome'];?></td>
</tr>
<?php
}
?>
</table>
It turns out that sometimes there are no values in the database. And I get the following error: Warning: Invalid argument supplied for foreach() in /home/usuario/public_html/script.php
How do I change the code to write: "Not available"? Someone can help?
Great Anderson! Perfect!
– Marcelo