-4
The code with problem does the following: It is part of a password reset system that I am creating, but when placing it inside an ECHO I got some problems that I was able to solve but this I see no apparent solution.
echo ''
.$id = $_GET['id']; // Recebendo o valor vindo do link
$resultado = $mysqli->query("SELECT * FROM usuarios WHERE ID = '".$id."'"); // Há variável $resultado faz uma consulta na tabela selecionando somente o registro desejado
while($linha = mysqli_fetch_array($resultado))
{'
<html><form id="form_Usuario" method="POST" action="updatecomplete.php" >
<label> Senha: </label> <br />
<input type="password" name="pass" style="height:30px; width:250px" value="'.md5($linha['Senha']).'\" />
<input type="submit" value="Alterar Senha" />
</form></html>
'}
When I execute the code I get the following error:
Parse error: syntax error, Unexpected '}' in...
@Guilhermenascimento of good, the answer has some problem? I can improve
– rray
Sorry for the serious mistakes I made but I am at the beginning of my course in php and sql, this form was very simple even to learn how to deal better with php and I didn’t even use css. About echo at the beginning I used because I had made an if that checked if a generated hash and an email was correct and if it would not show an error and if it existed it would execute this code then what I had read implied that the use of echo was mandatory. Thank you for clarifying my doubt I made some changes in the code and in the end everything went well.
– Felipe Guimaraes