10.4.4 Using Databases In CGI Programs
10.4.4 Using Databases In CGI Programs
Of course, a CGI program can query a database server, either running on the same machine or on a machine across the Internet. There is nothing complicated in connecting to a database from a CGI program. In fact, it is CGI programming as usual. In the following, we discuss two CGI programs: a program that queries a database to obtain the value of a Web page access counter, and a program that allows a user to search a database by submitting a filled HTML form.
