Gossamer Forum
Home : Products : DBMan : Customization :

adding data

Quote Reply
adding data
In my database, I let user sign up and add their particulars to the database, but after they enter their particulars, they cannot add another more. How should I get rid of the ADD permission once they have enter their particulars to the database?
Quote Reply
Re: adding data In reply to
The best way to do it is to set up the userid field as the $db_key field. If they try to add after there is already a record in the database, the new record will be rejected.

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





Quote Reply
Re: adding data In reply to
dont really know what u mean abt the userid.
isit the one they enter to login?

if so, what is the field name? isit userid ?
Quote Reply
Re: adding data In reply to
Yes, it is the userid they log on with. It can be any name you want within your field definition. It would be the same field whose number you use in the $auth_user_field variable.


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





Quote Reply
Re: adding data In reply to
can i have multiple db key?
Quote Reply
Re: adding data In reply to
No. I'm not sure why you would need one.

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