Gossamer Forum
Home : Products : DBMan : Customization :

Adding Records Problem

Quote Reply
Adding Records Problem
When attempting to add a new record to the database there appears to be no response once the Add button is clicked but the record is added to the *.db file.
The user though has no idea that the record has been added which means they either continue trying, which creates several of the same record or they give up, assuming it's not working.
A similar thing happened when the database reached 50 records and I found a line (147) in the script which read:
return "duplicate key error" if ($counter++ > 50);
I changed that to 500 and everything seemed to work again.
Now the database has 564 records so I thought it may be the same problem so changed it again to 5000 but it has made no difference. Also tried returning it to 50 but received a 500 error.
The database is at: http://www.racenet.com.au/blackbook/db.cgi?db=blackbook
Quote Reply
Re: Adding Records Problem In reply to
It sounds as though you might not have set $db_key_track to 1 -- or for some reason it's not updating your .count file.

Look in your .count file and see if the number is anywhere close to the number of the last record that was added.



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