CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Multiple flat-file dbs



Jul 24, 2002, 11:38 AM

Post #1 of 1 (1094 views)
Multiple flat-file dbs Can't Post

I have a couple of flat-file dbs that I need to use. They have different numbers of fields, as well as different data in the fields. My plan was to use two different scripts to pull the data from them, but the scripts would function essentially the same way, with many of the same features, so I'm looking for a way to use the same script for both dbs. I already have one of the scripts essentially finished for one of the dbs. I'm reading through most of the fields in a loop, based on an array of field names. However, at least two of the fields need to be displayed in a customized fashion, and the two fields are different for each db. Also, there would need to be an admin section for adding, editing and deleting entries for each db. I'm including the three files that are in use. One is the script itself, one is a collection of commonly used functions throughout my scripts, and one is the db. Feel free to yell at me about my "coding style", to use the term loosely. I'm painfully aware that my scripts aren't perfect. No reason, really, other than time pressures and laziness. I will take all suggestions to heart, and hopefully become a better programmer from them. Thanks.
"...there's some good in this world, Mr. Frodo, and it's worth fighting for." - Samwise Gamgee, The Two Towers
Attachments: honda_specs.db (0.46 KB) (5.50 KB) (6.81 KB)


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives