in reply to Re^2: Perl and DBI and CGI
in thread Perl and DBI and CGI
my $ref = $dbh->selectall_arrayref(" select name , email , age from users ") || die $dbh->errstr; foreach my $person (@{$ref}) { my ($name,$email,$age) = @{$person}; print "<font color=\"red\" > $name </font>"; print "<font color=\"blue\"> $email </font>"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl and DBI and CGI
by sOKOle (Acolyte) on Jun 23, 2005 at 13:53 UTC | |
by monkey_boy (Priest) on Jun 23, 2005 at 14:26 UTC | |
by sOKOle (Acolyte) on Jun 27, 2005 at 13:30 UTC | |
by monkey_boy (Priest) on Jun 27, 2005 at 15:52 UTC | |
by sOKOle (Acolyte) on Jun 28, 2005 at 08:21 UTC |