N
Nikos
ok the first part that loads the values is done, here it is 
#===============================================================================
my @row;
my $sth = $dbh->prepare( "INSERT INTO games( gamename, gamedesc,
gamecount) VALUES (?, ?, ?)" );
open (FILE, "<../data/games/perigrafes.txt") or die $!;
while (<FILE>) {
chomp;
@row = split /\t/;
push @row, 0;
$sth->execute( @row );
}
close FILE;
#===============================================================================
And the print out in games.pl is ok except that it does nto display the
table specification formatting:
Code:
my $row;
my $sth;
$sth = $dbh->prepare( "SELECT * FROM games" );
$sth->execute();
while ( $row = $sth->fetchrow_hashref ) {
print table( {class=>'games'},
Tr(
td( submit( -name=>'game', -value=>$row->{gamename} )),
td( $row->{gamedesc} ),
td( $row->{gamecount} )
)
)
}
How should i write it so for the snipper touse the classes and print out
the table and colort correctly. ths style.css file is ok but it is not
seek of using it.
Maybe the error is that the print table is display many times inside the
loop?
Please help.
#===============================================================================
my @row;
my $sth = $dbh->prepare( "INSERT INTO games( gamename, gamedesc,
gamecount) VALUES (?, ?, ?)" );
open (FILE, "<../data/games/perigrafes.txt") or die $!;
while (<FILE>) {
chomp;
@row = split /\t/;
push @row, 0;
$sth->execute( @row );
}
close FILE;
#===============================================================================
And the print out in games.pl is ok except that it does nto display the
table specification formatting:
Code:
my $row;
my $sth;
$sth = $dbh->prepare( "SELECT * FROM games" );
$sth->execute();
while ( $row = $sth->fetchrow_hashref ) {
print table( {class=>'games'},
Tr(
td( submit( -name=>'game', -value=>$row->{gamename} )),
td( $row->{gamedesc} ),
td( $row->{gamecount} )
)
)
}
How should i write it so for the snipper touse the classes and print out
the table and colort correctly. ths style.css file is ok but it is not
seek of using it.
Maybe the error is that the print table is display many times inside the
loop?
Please help.