I have changed my database format to this:
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
About => [2, 'alpha', 40, 75, 1, '', ''],
Month => [3, 'alpha', 0, 150, 1, '', ''],
Introduction => [4, 'alpha', 0, 150, 1, '', ''],
Article => [5, 'alpha', '40x3', 500, 0, '', ''],
Source => [6, 'alpha', 40, 75, 1, '', ''],
Date => [7, 'date', 15, 15, 1, \&get_date, '']
);
# Database file to use -- defined in links.cfg.
$db_file_name = $db_links_name;
# Counter file to use -- defined in links.cfg.
$db_id_file_name = $db_links_id_file_name;
# The column name for the database key.
$db_key = 'ID';
# Database delimeter.
$db_delim = '|';
# Title used in admin output.
$html_title = 'News Room';
$html_object = 'Article';
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_category = 3; $db_introduction = 4; $db_about = 2;
$db_hits = 8; $db_source = 6; $db_title = 1;
$db_modified = 7;
(the rest is the same)
and now when i build my detailed pages all the database entries ID's change to Yes
so instead of having 4.html i have Yes.html and for every new entry it just keeps writing to Yes.html!!!!
what is up with that?!
Regards
Gian
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
About => [2, 'alpha', 40, 75, 1, '', ''],
Month => [3, 'alpha', 0, 150, 1, '', ''],
Introduction => [4, 'alpha', 0, 150, 1, '', ''],
Article => [5, 'alpha', '40x3', 500, 0, '', ''],
Source => [6, 'alpha', 40, 75, 1, '', ''],
Date => [7, 'date', 15, 15, 1, \&get_date, '']
);
# Database file to use -- defined in links.cfg.
$db_file_name = $db_links_name;
# Counter file to use -- defined in links.cfg.
$db_id_file_name = $db_links_id_file_name;
# The column name for the database key.
$db_key = 'ID';
# Database delimeter.
$db_delim = '|';
# Title used in admin output.
$html_title = 'News Room';
$html_object = 'Article';
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_category = 3; $db_introduction = 4; $db_about = 2;
$db_hits = 8; $db_source = 6; $db_title = 1;
$db_modified = 7;
(the rest is the same)
and now when i build my detailed pages all the database entries ID's change to Yes
so instead of having 4.html i have Yes.html and for every new entry it just keeps writing to Yes.html!!!!
what is up with that?!
Regards
Gian