Romulo Cruz 0 Posted October 17, 2020 Report Share Posted October 17, 2020 <?php $result = $conn->query("SELECT * FROM mercado"); $resultCheck = mysqli_num_rows($result); if ($resultCheck > 0) { while ($row = mysqli_fetch_assoc($result)) { echo '<tr>'; echo '<td>'. $row['usuario_id'] .'</td>'; echo '<td>'. $row['numero'] .'</td>'; echo '<td>'. $row['tarefa'] .'</td>'; echo '</tr>'; } } ?> Olá a todos. Este código é o que eu criei para poder amostrar todos os dados da tabela mercado na página. Mas estou tendo erro neste código. O que eu posso modificar neste código para fazer esta tarefa? Como seria o código correto? Quote Link to post Share on other sites
0 lowys 0 Posted October 19, 2020 Report Share Posted October 19, 2020 Ôppa! Pode nos dizer qual foi o erro? Quote Link to post Share on other sites
Question
Romulo Cruz 0
Olá a todos. Este código é o que eu criei para poder amostrar todos os dados da tabela mercado na página.
Mas estou tendo erro neste código. O que eu posso modificar neste código para fazer esta tarefa?
Como seria o código correto?
Link to post
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.