Gossamer Forum
Home : Products : DBMan : Installation :

unwanted word 'default' inserted into .db file

Quote Reply
unwanted word 'default' inserted into .db file
Hello,
Since going through the configurator on JPDenis website, i am having a small problem with the .db file. The configurator was excellent and helped me understand the format for the default.cfg and html.pl, but after i entered the data into my files, i have suffered the following problem:

The first field in my .db file is a purchase order number, so it also serves as the $db_key. I have set the track to $db_key_track = 0; so that it doesn't overwrite this data. Now.... everytime i add a new record, dbman gives me the error "Error: Unable to Add Record
There were problems with the following fields: duplicate key error

Please fix any errors and submit the record again." even though this field contains a completely different number sequence each time, it inserts "default" into the field. Then, the only way to add a new record, is to delete the word "default" from the .db file and replace it with the correct number.

Help would be lovingly received,
regards,
darrenbUnimpressed
Quote Reply
Re: [darrenb] unwanted word 'default' inserted into .db file In reply to
Is your page by any chance reloading before displaying the add success page?

If so, it may be duplicating the dbkey.
In the FAQ noted below under the section "Admin" there is a thread called:

Prevent Duplicate ID # due to page Reload

It's strange that it is adding the word default?
You may need to save a copy of your .cfg file as a text file and
post the url of where it can be accessed.




Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/