2010-12-15 6 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

관련 문제