I need to decipher to be able to log in, on the web save with an encryption md5
<?php include 'config2.php';
$json = file_get_contents('php://input');
$obj = json_decode($json,true);
$email = $obj['email'];
$password = md5($obj['password']);
if($obj['email']!=""){
$result= $db->query("SELECT * FROM estudiante where NombreUsuario='$email' and Clave='$password'");
if($result->num_rows==0){
echo json_encode('Wrong Details');
}
else{
echo json_encode('ok');
}
}
else{
echo json_encode('try again');
}
?>
I'm trying to enter and I get a password error, a