#!/usr/bin/perl -wT #################################### #Name: PerlMysql_1.cgi #Lesson 1 in Perl DBI using Mysql. # Database server: MySQL # Table in use: from (Student.csv and FullTimeStudent.csv) # Author: Jen Chen # Date: 05/17/04 #################################### use CGI ":standard"; #Call the perl CGI library. use DBI; #Call the Perl DBI library. print header(); #Need this line; otherwise print the html header and teh contents type. print "
| Order | Student # | Name | Major | Class | Birth Date |
| $index | $stno | $sname | $major | $class | $bdate |