Gossamer Forum
Home : Products : DBMan : Installation :

only access to user's own record

Quote Reply
only access to user's own record
 
hi all

i want to create a database where i have 100 users and every user can view only his record. I want to organize a database file and sometime i upload it to the server and every user can view only his record.

is it possible? how?

thx.

luca lani - italy (sorry for my english)

------------------
Quote Reply
Re: only access to user's own record In reply to
You are going to build the database yourself? If so, you'll need to add a field for the userid and then tell each user what his id is before he comes to the site to log in.

In the .cfg file, set $auth_view_own to 1 and set $auth_user_field to the number of the field where the userid is. If you're only going to have one record per person, you can set $db_key to the name of the field that holds the userid and set $db_track_key (or is that $db_key_track?) to 0.



------------------
JPD