The New page does not show the new listings to the database.
Here is what I have on links.db
490|Love|Love Birds|/ecards/images/lovebirds.jpg|0|Yes|No|27-May-2001
Here is my links.def
---------------------------------
ID => [0, 'numer', 5, 8, 1, '', ''],
Category => [1, 'alpha', 0, 150, 1, '', ''],
Title => [2, 'alpha', 40, 75, 1, '', ''],
Card => [3, 'alpha', 40, 100, 0, '/ecards/images/.jpg', ''],
Hits => [4, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [5, 'alpha', 0, 5, 0, 'Yes', ''],
isPopular => [6, 'alpha', 0, 5, 0, 'No', ''],
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 = 'Ecard Database';
$html_object = 'Ecard';
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_category = 1;
$db_hits = 4; $db_isnew = 5; $db_ispop = 6;
$db_title = 2;
$db_card = 3; $db_date = 7;
# Field number to sort links by:
$db_sort_links = 1;
# Field names you want to allow visitors to search on:
@search_fields = (1,2,3);
# System defaults. When adding new links or modifying links, these fields
# can not be overwritten by a user.
%add_system_fields = (
isNew => 'Yes',
isPopular => 'No',
Hits => '0',
);
# Hash of column names to possible options. If you want to use a select form
# field, you can use &build_select_field in your HTML page. This routine will
# make a <SELECT> input tag using the following values:
%db_select_fields = (
isNew => 'Yes,No',
isPopular => 'Yes,No',
);
--------------------------------
Can someone please tell me where the problem is.
Thanks.
Here is what I have on links.db
490|Love|Love Birds|/ecards/images/lovebirds.jpg|0|Yes|No|27-May-2001
Here is my links.def
---------------------------------
ID => [0, 'numer', 5, 8, 1, '', ''],
Category => [1, 'alpha', 0, 150, 1, '', ''],
Title => [2, 'alpha', 40, 75, 1, '', ''],
Card => [3, 'alpha', 40, 100, 0, '/ecards/images/.jpg', ''],
Hits => [4, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [5, 'alpha', 0, 5, 0, 'Yes', ''],
isPopular => [6, 'alpha', 0, 5, 0, 'No', ''],
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 = 'Ecard Database';
$html_object = 'Ecard';
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_category = 1;
$db_hits = 4; $db_isnew = 5; $db_ispop = 6;
$db_title = 2;
$db_card = 3; $db_date = 7;
# Field number to sort links by:
$db_sort_links = 1;
# Field names you want to allow visitors to search on:
@search_fields = (1,2,3);
# System defaults. When adding new links or modifying links, these fields
# can not be overwritten by a user.
%add_system_fields = (
isNew => 'Yes',
isPopular => 'No',
Hits => '0',
);
# Hash of column names to possible options. If you want to use a select form
# field, you can use &build_select_field in your HTML page. This routine will
# make a <SELECT> input tag using the following values:
%db_select_fields = (
isNew => 'Yes,No',
isPopular => 'Yes,No',
);
--------------------------------
Can someone please tell me where the problem is.
Thanks.