Jump to content
Fórum Script Brasil

Fabio_Lima

Membros
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Fabio_Lima

  1. Pessoal boa tarde ! Solicito um auxilio para resolver o erro abaixo? "Parse error: syntax error, unexpected '$consulta' (T_VARIABLE) in /var/www/html/usuario.php on line 6" Segui o codigo. <?php include("conexao01.php") $consulta = "SELECT * FROM usuario"; $con = $msqli->query($consulta) or die($msqli->error); ?>php <html> <head> <meta charset="utf8"> </head> <body> <table> <tr> <td>Codigo</td> <td>Nome</td> <td>Email</td> <td>Data de Cadastro</td> </tr> <?php while ($dado = $con->fetch_array()) { ?> <tr> } <td><?php echo $dado["usu_codigo"];?></td> <td><?php echo $dado["usu_nome"];?></td> <td><?php echo $dado["usu_email"];?></td> <td><?php echo $dado["usu_datadecadastro"];?> </tr> <?php } ?> </table> </body> </html>
×
×
  • Create New...