开发者

Dynamic Table Creation In html Using CGI

I'm 开发者_如何学编程trying to print some data in tables by using the below code (not entire code) but it's giving error. If I remove the table then I'm able to print the output. Can anybody help me with this?

print "<table border="1">\n";
while(my $ref = $sth->fetchrow_hashref()) {
print "<tr>\n";
print "<td>\n ";
print "$ref->{'name'} owns $ref->{'telno'}\n";
print "</td>\n";
print "</tr>\n";
}
print "</table>\n";


print "<table border="1">\n";

Don't you need to escape those inner double quotes?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜