prepare($sql); $stmt->execute(); echo ""; echo ""; while ($linha = $stmt->fetch(PDO::FETCH_OBJ)) { $timestamp = strtotime($linha->evento); $dataTabela = date('d/m/Y H:i:s',$timestamp); echo""; echo""; echo""; echo""; echo""; echo""; } echo "
ID Data Hora Nome Nota
" . $linha->id . "" . $dataTabela . "" . $linha->nome . "" . $linha->nota . "
"; ?>