Version 1a of a demo database application.
(Includes bug fix for stale dbh->{sth} handle. - Jim M, 10/10)
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>