Question

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.

No correct solution

OTHER TIPS

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')\">" );
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top