There is no doubt that the most attractive and most complicated and most complicated in the design of today's web program is a web database program. Ping, its complexity is by no means you can think. Let's first take a look at the problems involved in it:
1. The most basic HTML design
2. CGI program writing debugging
3. Network management and customer coordination
4. Database editing
5. Customer / Services System Program
In addition, you have to struggle with your customers from time to time to get their recognition of you. Therefore, a large web database is written, which is the test of overall quality.
The author's self-satisfaction is not fully equipped, but fortunately, I have participated in several Web database development, and I have a preliminary experience. Share this here, it is also a thank you for your summary of this intermittent tutorial.
One database selection
From a general situation, using a web database is often a problem that the data is summarized, indexing, and maintenance. We generally choose the most popular relational database, such as the SQL, WIN95 and NT under the SQL, WIN95 and NT, and the Sybase, UNIX under the NT, MSQL, etc. Of course, Oracle, Filemaker Pro, Paradox, etc. These are all popular SQL databases. SQL provides a standard and solid interface to data management, which is required to be implemented in database languages. Such functions include: creation, inserting data, and data modifications of data objects. For small databases with small data, Access is generally used.
Second interface program
Although we can write a Web's CGI interface directly, it is a work that is huge and troublesome. In order to alleviate the burden of the developer, the database programmer writes many interface programs that can be used directly, cooperate with different databases. Here is some very common interface procedures:
DB2wwww
http://www.software.ibm.com/data/db2/db2wfac2.html
This is a tool for connecting to the IBM DB2 database. In the HTTP server, this tool stores the HTML file and the SQL command as a macro file, and then the DB2WWW will handle these macro files after accepting the browser request.
2. DBCGI
http://www.progress.com/webtools.html
This tool implements connections to the database by built-in SQL statements in an HTML file. Suitable for Progress, Sybase, Oracle, Informix, IngRes, and ODBC. Here is a typical DBCGI program code:
3 genera
http://gdbdoc.gdb.org/letovsky/genera/general.html
This is the gateway of the Sybase database system. It connects to the database by adding a specific statement in a text file.
4 WebDBC
http://www.ndev.com
With Windows NT, you can access all databases compatible with the ODBC. 5 a-xorion
http://www.clark.net/infouser/endidc.html
He is a CGI gateway that can access most PC databases. It is platform for Windows 3.1 / 95 / NT. The database is MS Access 2.0.
Three-programming language
What is introduced above is some common interface programs that require the match of Server to work. Of course, if you are a small database program, you don't need to use this complex database interface program. Write into a CGI program with C, Perl, VB, etc., call the database within the CGI program. Although the speed is not very fast, it is definitely very simple.
Last example:
Finally, I am going to end this tutorial with an example.
surroundings:
This is a very simple web application. If you want to run this program, you may get some time to configure your own system. In this example, the CGI program is written by Perl5. The background database uses Sybase System 10, Sybperl is used to establish communication between scripts and databases, using other CGI background database interface programs.
CGI program: