2010-12-15 19 views
0

以下のコード(コード全体ではない)を使用してテーブルのデータを印刷しようとしていますが、エラーが発生しています。 テーブルを削除すると、出力を印刷できます。誰も私にこれを助けることができますか?htmlでCGIを使用した動的テーブルの作成

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"; 

答えて

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

あなたがそれらの内側の二重引用符をエスケープする必要はありませんか?

+0

ありがとうございました。 – Naresh

関連する問題