The full error message is:
missing ) after argument list
[Break On This Error] change_content('imagediv', '<img src='images/painting_2.jpg'>');
Maybe I've been staring at this for too long, but I believe the parentheses are in the correct position. This code is contained in an include.
Thank you.
<?php
$paintingBack=$paintingNumber-1;
$paintingNext=$paintingNumber+1;
if ($paintingBack < 1) {
$paintingBack = $paintingBack + 1;
}
?>
<a href="" class='link' onFocus='if(this.blur)this.blur()' onclick="change_content('imagediv', '<img src='images/painting_<? echo $paintingBack; ?>.jpg'>');"><img src='images/braceL.gif' alt='brace' width='20' height='11' valign='text-bottom'/></a>