<table class="table" style="width:90%"> <thead> <tr> <th>#</th> <th>Nome:</th> <th>Telefone:</th> <th>Endereço:</th> <th>Email:</th> <th>Descrição:</th> <th>Ações:</th> </tr> </thead> <?php $dados = $Bdsoli->buscartabela(); foreach ($dados as $linha) { $id = $linha["id"]; $nome = $linha["nome"]; $telefone = $linha["telefone"]; $endereco = $linha["endereco"]; $email = $linha["email"]; $descri = $linha["descri"]; echo " <tr>\n <td>{$id}</td>\n <td>{$nome}</td>\n <td>{$telefone}</td>\n <td>{$endereco}</td>\n <td>{$email}</td>\n <td>{$descri}</td>\n <td>\n <a href='../classes/apagar.php?id={$id}' onclick='return confirm(\"Deseja realmente deletar?\")'>Apagar</a>\n <a href='../telas/versolicitacao.php?id={$id}' onclick='return confirm(\"Deseja realmente visualizar?\")'>Visualizar</a>\n </td>\n </tr>"; } ?> </table> </div> </body> </html>