in reply to Re^4: Perl and DBI and CGI
in thread Perl and DBI and CGI
It runs just fine even with the "Dr. John Bull". Please check the database if some special characters are not slipped thru.my $ref = $dbh->selectall_arrayref(" select name, email from testtable") || die $dbh->errstr; foreach my $person (@{$ref}) { my ($name,$emai) = @{$person}; print "<font color=\"red\" >Name : $name </font>"; print "<font color=\"blue\"> Email : $email </font><br>"; + }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl and DBI and CGI
by Anonymous Monk on Jun 24, 2005 at 12:04 UTC |