O'Reilly logo

Sams Teach Yourself CGI in 24 Hours, Second Edition by Rafe Colburn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a Database Application

Now that you know which steps you need to take to perform various operations on flat-file databases, and you know how to use file locking to give your programs exclusive access to files when you modify them, I’m going to explain how to perform each of those operations using Perl programs. When appropriate, the examples use file locking to gain exclusive access to the files, and wrap the file modification code in an eval construct so that any errors can be trapped and reported to users in a friendly manner.

The Sample Database

Before I can demonstrate any scripts that make use of a database, I need to explain the structure of the sample database itself. This database is very simple. It contains one record per ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required