質問

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