I'm back home but my computer keeps crashing on me... Anyway I'm pleased that you got the program running.
The fields will be off by one because the ID field should have been removed in preparation for bulkload.cgi. I don't understand the skipping of the hits field though...
Sorry about the 'Description', I should have put it into 'Title' in the first place.
I'll Email you an updated version. You will need to change the filename to urlimport.cgi and reset all the user params as required.
I've added a fix to ensure that if a field name is wrong in %rec_defaults it will be reported on, so it's worth checking the logfile after a scan.
The record layout of links.db is as defined in %db_def, (in links.def). Take the lines:-
ID => [0,'numer',5,8,,'',''],
Title => [1,'alpha',40,75,1,'',''],
For 'ID', the 0 in the first parameter indicates that the 'ID' is field '0' in the links.db file. Each field is delimited by the '|' symbol. For 'Title', the '1' in the first parameter indicates that the 'Title' is field '1' in the links.db file.. and so on. Each record is delimited by the newline character '\n'.
The resulting file, (a flatfile database), is:-
ID|Title|etc|etc|etc\n
ID|Title|etc|etc|etc\n
ID|Title|etc|etc|etc\n and so on...
Hope this helps.
George E.D. Burville
Ed: www.appbe.com