Then we have to figue out why the record isn't being retrieved. There are a number of possiblities for this.
1--
In sub get_record, did you delete the line
($restricted = 1) if ($auth_modify_own and !$per_admin);
2--
Are you sure there is a record in miembros that matches the currently logged in user?
------------------
Wait a minute. If you want the userid from miembros, and the userid is the key field, then all you need to do is use $db_userid.
Or do you want other information from the miembros database?
JPD
1--
In sub get_record, did you delete the line
($restricted = 1) if ($auth_modify_own and !$per_admin);
2--
Are you sure there is a record in miembros that matches the currently logged in user?
------------------
Wait a minute. If you want the userid from miembros, and the userid is the key field, then all you need to do is use $db_userid.
Or do you want other information from the miembros database?
JPD