in reply to Re^2: DBI::CSV using a variable to request columns
in thread DBI::CSV using a variable to request columns
I thought that I might display $queryResult in a web page.For this purpose, you could use HTML::Table::FromDatabase, which could replace your while loop with a simple call to
my $table = HTML::Table::FromDatabase->new( -sth => $sth, -html => 'escape', -border => 1, ); print "<html><head><title>this is the page title</title></head><body>< +h1>this is the header</h1>"; print $table->getTable; print "this is the end</body></html>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: DBI::CSV using a variable to request columns
by Sandy_Bio_Perl (Beadle) on May 20, 2016 at 21:42 UTC |