Gossamer Forum
Home : Products : DBMan : Discussions :

Setting up a counter to be unique key

Quote Reply
Setting up a counter to be unique key
I have DBman up and running but it will only let be add 1 record and then I get a error message saying-duplicate key error. How can I set up a field to be a counter and be the unique key so the same user can add more than 1 entry? thanks

Quote Reply
Re: Setting up a counter to be unique key In reply to
You should set the $db_key to your ID field and also TURN ON $db_key_tracking in your default.cfg file, like the following:

Code:

$db_key_track = 1;


You should not set the $db_key variable to the UserID field as this will only allow users to add only one record.

Regards,

Eliot Lee