Gossamer Forum
Home : Products : DBMan : Installation :

Key tracking--new item starts with incorrect number

Quote Reply
Key tracking--new item starts with incorrect number
I have just set up DBMan and have hit a snag with the the key tracking. The database has 688 records, but when I set
$db_key_track = 1;
and try to add a new record the ID says 71.

Is the error in the database definitions?

%db_def = (
"ID" => [0, 'numer', 5, 8, 1, '', ''],
Newspaper => [1, 'alpha', 60, 255, 0, '', ''],
Location => [2, 'alpha', 60, 255, 0, '', ''],
Date => [3, 'alpha', 15, 20, 0, '', ''],
Title => [4, 'alpha', 12, 15, 0, '', ''],
Page_column => [5, 'alpha', 25, 255, 0, '', ''],
Author => [6, 'alpha', 25, 255, 0, '', ''],
Abstract => [7, 'alpha', '60x5', 1000, 0, '', ''],
Scan_serial => [8, 'alpha', 25, 100, 0, '', ''],
Page_URL => [9, 'alpha', 75, 500, 0,
'http://www.ceri.memphis.edu/compendium/compb/.html', '^http://'],
Scan_URL => [10, 'alpha', 75, 500, 0,
'http://www.ceri.memphis.edu/compendium/comp1b/images/.jpg', '^http://']
);

Thanks.

Kathy
Quote Reply
Re: [ktuck] Key tracking--new item starts with incorrect number In reply to
Quote:
and try to add a new record the ID says 71.
The script are picking up the number in the default.cont file (70 by default). Modify that file to reflect the number of records in your dabatase, 688, and the scripts will begin using the next number from there.
Quote Reply
Re: [Karen] Key tracking--new item starts with incorrect number In reply to
Worked like a charm. Thanks so much!

Kathy