Nik has asked for the wisdom of the Perl Monks concerning the following question:
$st = $db->prepare( "SELECT * FROM counter" ); $st->execute(); $row = $st->fetchrow_hashref; @tableRows = (); while( $item = $row ) { push @tableRows, $item; }; print table( {class=>'info'}, map { Tr( td( submit( -name=>'game', -value=>$_->{name} )), td( $_->{text} ), td( $_->{name} ) ) } @tableRows );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Looping question
by jZed (Prior) on Apr 22, 2005 at 21:23 UTC | |
|
Re: Looping question
by 5mi11er (Deacon) on Apr 22, 2005 at 21:24 UTC | |
| |
|
Re: Looping question
by shemp (Deacon) on Apr 22, 2005 at 21:42 UTC | |
|