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
Apr 20, 2001, 12:12 PM
Veteran (17240 posts)
Apr 20, 2001, 12:12 PM
Post #2 of 2
Views: 2179
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:
$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
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