Gossamer Forum
Home : Products : DBMan : Customization :

ID missing by login no admin

Quote Reply
ID missing by login no admin
5|Weisrock|||||||||info@test.de||17-Aug-2001|||
|Werner|||||||||info@test.de||17-Aug-2001|||

When login in with no admin db-man save the record with no ID. Login with adim the record is o.k. See the first.

This is my ..
%db_def = (
'ID' => [ 0, 'numer', 20, 10, 0, '', ''],
'Author' => [ 1, 'alpha', 20, 255, 0, '', ''],
'Kategorie' => [ 2, 'alpha', 0, 40, 0, '', ''],
'Zeitraum' => [ 3, 'alpha', 0, 40, 0, '', ''],
'Titelzeile' => [ 4, 'alpha', 60, 255, 0, '', ''],
'Text' => [ 5, 'alpha', '40x5', 1000, 0, ' ', ''],
'Fusszeile' => [ 6, 'alpha', 60, 255, 0, '', ''],
'Preis' => [ 7, 'alpha', 20, 255, 0, '', ''],
'Frei1' => [ 8, 'alpha', 40, 255, 0, '', ''],
'Frei2' => [ 9, 'alpha', 0, 20, 0, '', ''],
'eMail' => [10, 'alpha', 40, 255, 0, 'info@gartengestaltung-zorn.de ','.+@.+..+'],
'Homepage' => [11, 'alpha', 40, 255, 0, '', '^http://'],
'Datum' => [12, 'alpha', 10, 255, 0, &get_date(), ''],
'Frei4' => [13, 'alpha', 40, 255, 0, '', ''],
'Frei5' => [14, 'alpha', 40, 255, 0, '', ''],
'Graphic' => [15,'alpha', 0,3,0,'','Yes']
);

$db_key = 'ID';
$db_key_track = 1;
$db_delim = '|';
$db_use_flock = 1;
$db_auto_generate = 0;
$db_benchmark = 0;
$db_debug = 0;

%db_checkbox_fields = (
);
$db_max_hits = 10;
$db_bold = 1;
$auth_no_authentication = 0;
$auth_time = 21600; # 6 hours (in seconds)
$auth_logging = 1;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 0;
@auth_signup_permissions = (1,1,1,1,0);
$auth_modify_own = 0;
$auth_view_own = 0;
$auth_user_field = 1;


I can not found the error.

Thanks.







Quote Reply
Re: ID missing by login no admin In reply to
I didn't see anything which would cause it to not work?

You might try changing the ID field to:

'ID' => [ 0,'numer',5,5,1,'','\d{1}'],

This will make it a required field.

Also be sure in your html_record_form that you have all the fields listed that are in your .cfg file. Not having them all within the form will cause problems.

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: ID missing by login no admin In reply to
Thank you for the help. I will testing.

Quote Reply
Re: ID missing by login no admin In reply to
WernerW:

You should change:

Code:
'eMail' => [10, 'alpha', 40, 255, 0, 'info@gartengestaltung-zorn.de ','. @. .. '],
to

Code:
eMail => [10, 'alpha', 40, 255, 0, 'info@gartengestaltung-zorn.de','. @. \.. '],
Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/