diogohortas1234 Posted January 6, 2021 at 09:09 AM Report Share #620882 Posted January 6, 2021 at 09:09 AM Alguém me consegue ajudar a corrigir o erro? <?php include ('ligacao.php'); $id_utilizador=$_GET['id_utilizador']; $sql="SELECT * FROM utilizador WHERE id_utilizador='$id_utilizador' "; $result = mysqli_query($sql); $row = mysqli_fetch_array($result); ?> <html> <body> <p><b>Registo de Utilizadores</b></p> <form name="registo de utilizadores" method="post" action="altera_utilizador_exe.php"> <table> <tr> <td> Nome:</td><td><input name="nome" type="text" size="50" maxlenght="50" value=”<?php echo $row['nome']?>”> </td> </tr> <tr> <td> Morada:</td><td><input name="morada" type="text" size="50" maxlenght="50" value=”<?php echo $row[morada']?>”> </td> </tr> <tr> <td>E-mail:</td> <td><input name="email" type="text" size="50" maxlenght="50" value=”<?php echo $row['email']?>”></td> </tr> <tr> <td>Telemóvel:</td> <td><input name="telemovel" type="text" size="12" maxlenght="12" value=”<?php echo $row['telemovel']?>”></td> </tr> <tr> <input name=”id_utilizador” type=”hidden” value=”<?php echo $row['id_utilizador']?> ”> <td><input type="submit" name="enviar" value="ALTERAR"></td> </tr> </table> ?> Link to comment Share on other sites More sharing options...
tiago.f Posted January 6, 2021 at 09:13 AM Report Share #620883 Posted January 6, 2021 at 09:13 AM Boas, podemos tentar: qual é o erro que dá? Link to comment Share on other sites More sharing options...
diogohortas1234 Posted January 6, 2021 at 09:25 AM Author Report Share #620886 Posted January 6, 2021 at 09:25 AM quero fazer um formulário de registo de utilizadores com uma BD mas esta porção de código me dá erro Link to comment Share on other sites More sharing options...
tiago.f Posted January 6, 2021 at 09:27 AM Report Share #620888 Posted January 6, 2021 at 09:27 AM certo...e qual é o erro? Coloca aqui a mensagem de erro com todos os detalhes para que possamos ajudar. Link to comment Share on other sites More sharing options...
diogohortas1234 Posted January 6, 2021 at 09:28 AM Author Report Share #620889 Posted January 6, 2021 at 09:28 AM ok Link to comment Share on other sites More sharing options...
diogohortas1234 Posted January 6, 2021 at 09:33 AM Author Report Share #620890 Posted January 6, 2021 at 09:33 AM https://drive.google.com/file/d/10HBVgkkRyqvgV82EyJHaX7A-zT0ZDwKc/view?usp=sharing eu fiz umas capturas de ecrã com os erros Link to comment Share on other sites More sharing options...
tiago.f Posted January 6, 2021 at 10:05 AM Report Share #620895 Posted January 6, 2021 at 10:05 AM Bem, pelo video, claramente não tens o php instalado e/ou o teu webserver (apache?) não está bem configurado e em vez de processar os ficheiros .php, está simplesmente a tratá-los como ficheiros de texto e a despejá-los para o browser. Revê a instalação do teu ambiente de desenvolvimento local.... Link to comment Share on other sites More sharing options...
diogohortas1234 Posted January 6, 2021 at 10:07 AM Author Report Share #620896 Posted January 6, 2021 at 10:07 AM ok obrigado Link to comment Share on other sites More sharing options...
N3lson Posted February 2, 2021 at 09:50 AM Report Share #621155 Posted February 2, 2021 at 09:50 AM Estás a executar o ficheiro directamente, necessita de ser executado num servidor local (usa xammp) You can't do it, kid. But don't worry, my boy. You're not the only one. No one else can do it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now