Вопрос

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