function actualizaCont($email, $cont) { $contra = MD5($cont); $con = new Conexionppn(); $sql = "UPDATE login SET login_contra = '{$contra}' WHERE login_usuario = '{$email}' "; $con->sql($sql); }
function getUserType($user) { $con = new Conexionppn(); $sql = "SELECT * FROM login WHERE login_usuario = '{$user}' "; $result = $con->sql($sql); return $result; }