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>"; + }
In reply to Re^5: Perl and DBI and CGI
by sapnac
in thread Perl and DBI and CGI
by sOKOle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |