This is a project that has been back-burner'd - and now I'm faced with adding an unlink (delete record) routine.
Data is stored in a flat file database using an 'old' style Perl cgi. Each record consists of many fields. Each record is written to two separate databases - one db per category (category.db) and one that stores all category's records (big.db). Each db has anywhere from 50 to 100 record lines.
a record line may look like:
state:NM|food:chili|color:blue, purple, red green|etc:etc| (lots of fields that end in a pipe)
Using a form to select which record to edit (delete) - how do I unlink that "line" from the category.db and big.db? I don't know how to get all those fields into an array and unlink.
I can unlink a particular file easy enough - but I've never had to unlink a line from a data file, let alone two different data files at the same time.
Sorry, but I really need some pointers on this. It's down to the wire with this project.
Data is stored in a flat file database using an 'old' style Perl cgi. Each record consists of many fields. Each record is written to two separate databases - one db per category (category.db) and one that stores all category's records (big.db). Each db has anywhere from 50 to 100 record lines.
a record line may look like:
state:NM|food:chili|color:blue, purple, red green|etc:etc| (lots of fields that end in a pipe)
Using a form to select which record to edit (delete) - how do I unlink that "line" from the category.db and big.db? I don't know how to get all those fields into an array and unlink.
I can unlink a particular file easy enough - but I've never had to unlink a line from a data file, let alone two different data files at the same time.
Sorry, but I really need some pointers on this. It's down to the wire with this project.