Jump to content

Código não funciona


diogohortas1234

Recommended Posts

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

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.