Gossamer Forum
Home : Products : DBMan : Installation :

Add one record only

Quote Reply
Add one record only
Hi all,

ok here goes another question, How do we restrict the user to add only one record ? I do not want that person to able add an other record.

thanks

Denny



Quote Reply
Re: Add one record only In reply to
From JPDeni's "Limit Number of Records" MOD:
In Reply To:
# The easiest way to guarantee that each user will have only one
# record in the database is to set the
# $db_key
# to the name of your userid field. You also must set
# $db_key_track = 0;
#
# If the user tries to add a second record, he will get a message
# "duplicate key error"
#################################################
Check out the MOD in the Resource centre for more options.

Quick link: http://www.jpdeni.com/...ds/limitrecords.html

Good luck!

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: Add one record only In reply to
In the resource center you will find a mod called "Limiting the number of records per user"

also available directly from:

http://www.jpdeni.com/dbman/Mods/limitrecords.html

P.S. Now that you have your database up and running, please post your questions for customizing your database in the customization forum.


Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Add one record only In reply to
Thank you Astroboy !

I will check this out & post my messages in the config forum from now on.

Quote Reply
Re: Add one record only In reply to
excellent ! used the mod to remove "add" and works great !

thanks