Hello
i added new fields to my links.def:
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
City => [2, 'alpha', 40, 75, 1, '', ''],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
AreaPhone => [10, 'numer', 0, 5, 1, '', ''],
Phone => [11, 'numer', 10, 10, 1, '', ''],
ReceiveMail => [12, 'alpha', 10, 10, 1, '', 'No|Yes']
);
and modified that:
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_title = 1; $db_city = 2; $db_modified = 3; $db_category = 4; $db_contact_name = 6;
$db_contact_email = 7; $db_hits = 8; $db_isnew = 9; $db_areaphone = 10; $db_phone = 11;
$db_mail = 12;
The new fields are added in the admin panel, i have no problem to add a new link, at this point the file links.db is ok and start with the ID number but when i rebuild the pages the ID number becomes No and of course nothing works as there is no more ID to identify the link.
Any hint of what I am doing wrong?
I am pulling my hairs, i read about all postings without finding any explanation to my problem. I re-uploaded all the datas files to start over several times and always have the same problem, i re-uploaded the original links.def and it works fine, i am not trying to addd new fields to an already existing database this is a new install.
Thanks
i added new fields to my links.def:
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
City => [2, 'alpha', 40, 75, 1, '', ''],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
AreaPhone => [10, 'numer', 0, 5, 1, '', ''],
Phone => [11, 'numer', 10, 10, 1, '', ''],
ReceiveMail => [12, 'alpha', 10, 10, 1, '', 'No|Yes']
);
and modified that:
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_title = 1; $db_city = 2; $db_modified = 3; $db_category = 4; $db_contact_name = 6;
$db_contact_email = 7; $db_hits = 8; $db_isnew = 9; $db_areaphone = 10; $db_phone = 11;
$db_mail = 12;
The new fields are added in the admin panel, i have no problem to add a new link, at this point the file links.db is ok and start with the ID number but when i rebuild the pages the ID number becomes No and of course nothing works as there is no more ID to identify the link.
Any hint of what I am doing wrong?
I am pulling my hairs, i read about all postings without finding any explanation to my problem. I re-uploaded all the datas files to start over several times and always have the same problem, i re-uploaded the original links.def and it works fine, i am not trying to addd new fields to an already existing database this is a new install.
Thanks