-2
I have a database query that returns an object to me Array ( [0] => stdClass Object ( [id] => 3 [status] => pending [task] => drink juice )
[1] => stdClass Object
    (
        [id] => 17
        [status] => pendente
        [tarefa] => lavar pneu
    )
Only at the time of foreach to display the data on the screen, is returning only
 $tarefa){ ?>()
follow the foreach:
  <? foreach($tarefas as $indice => $tarefa){ ?>
      <?= $tarefa->tarefa?> (<?= $tarefa->status ?>)
<? } ?>
(PHP tags are why they are in the HTML file)
Your server PHP identifies html files as php files? What is the file extension where this code is . html or . php?
– Taffarel Xavier
var_dump($tarefas);shows what ?– Isac