Esta funcion debe actualizar la contraseña de mi usuario en la base de datos pero me aparece un error en pantalla al hacerla:
Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
function resetUser($conexion, $id){
mysqli_query($conexion, "UPDATE usuario SET clave = 'e10adc3949ba59abbe56e057f20f883e', primer_login = '0' WHERE id = ".$id."") or die("Error: ".mysqli_error($conexion));
}