in reply to Build Table with 'n' rows and 'm' columns
Hi, Try like this,
use strict; use warnings; use DBI; use HTML::TableTiler; my @matrix; my $dbh = DBI->connect( "DBI:mysql:project") or die "Can't connect to +Oracle database: $DBI::errstr\n"; my $sth = $dbh->prepare("select * FROM modules"); $sth->execute || $sth->errstr(); while (my @row = $sth->fetchrow_array) { push (@matrix, [@row]); } $dbh->disconnect; my $tt = HTML::TableTiler->new(); print $tt->tile_table(\@matrix);
Thanks ikegami++
Regards,
Velusamy R.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Build Table with 'n' rows and 'm' columns
by ikegami (Patriarch) on Nov 02, 2006 at 09:33 UTC | |
by mreece (Friar) on Nov 02, 2006 at 15:07 UTC | |
by cLive ;-) (Prior) on Nov 02, 2006 at 15:47 UTC | |
Re^2: Build Table with 'n' rows and 'm' columns
by andyford (Curate) on Nov 02, 2006 at 15:10 UTC |