Jump to content

[SOLVED] Parse error: syntax error, unexpected '(', expecting '}'.


seany123

Recommended Posts

You'll have to concatenate the part the includes the method.

 

$icon = "<img src=\"images/forums/icons/NewPost.png\" width=\"75%\" alt=\"" . $check->recordcount() . " New Post(s)\">";

 

edit, kickstart got there.

Actually, you can put class methods and class variables in a double quoted string (at least in php5.) The original posted code works for me.

 

It is likely that error is cause by the lines immediately before the line with the error. Post at least 5 lines before that point.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.