문제

PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in ...

tpl->set( '[complaint]', "<a href=\"javascript:AddComplaint('" . $row['id'] . "', 'comments')\">" );

What in this code causing problem, please help to find answer.

올바른 솔루션이 없습니다

다른 팁

You're missing the dollar sign before your variable name:

tpl->set( '[complaint]', "<a href=\"javascript:AddComplaint('" . $row['id'] . "', 'comments')\">" );

should be:

$tpl->set( '[complaint]', "<a href=\"javascript:AddComplaint('" . $row['id'] . "', 'comments')\">" );
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top