Registrar Database Version 1.2:
Jim's bug fix
(stale dbh->{sth} left after getNextPerson or getNextCourse finishes)
applied to Daniel's expansion of Jim's in-class demo.
The pieces include
- A SQL database
- Here's the populate_tables.sql SQL code that defines it.
-
Click here to initialize the database.
<% $initdb_message %>
- HTML::Mason
- Perl::DBI Objects
%# =========================================================================
%#
<%args>
$action => ''
%args>
%#
<%init>
my $initdb_message = '';
if ( $action =~ /initdb/ ){
chdir $m->base_comp->source_dir; # make sure we're in this directory
`./init_db`; # run the database initialization script.
$initdb_message = qq{
OK, the database is now initialized.
|
};
}
%init>