Gossamer Forum
Home : Products : DBMan : Customization :

0 (can not be left blank)

Quote Reply
0 (can not be left blank)
I get the above error when adding a record (to a blank db)for some unknown reason. I have changed the db definition (enclosed below) and implemented the 1-record-limit mod

I've deleted ID (as userid is the db_key)

any suggestions?



%db_def = (
Name => [0, 'alpha', 40, 255, 1, '', ''],
E-mail => [1, 'alpha', 20, 255, 1, '', ''],
userid => [2, 'alpha', -2, 15, 1, '', ''],
URL => [3, 'alpha', 40, 255, 0, 'http://', '^http://'],
City => [4, 'alpha', 40, 255, 1, '', ''],
Region => [5, 'alpha', 0, 80, 1, '', ''],
Age_Groups => [6, 'alpha', 0, 80, 1, '', ''],
Contact_for => [7, 'alpha', 0, 255, 0, '', ''],
Games_Play => [8, 'alpha', '40x3', 500, 0, '', ''],
Comments => [9, 'alpha', '40x3', 500, 0, '', ''],
Date => [10, 'date', 12, 15, 1, &get_date, '']
);

Quote Reply
Re: 0 (can not be left blank) In reply to
You need to identify the Name field as your $db_key variable.

Regards,

Eliot Lee