php - "SyntaxError: missing ; before statement" -
im trying write code add javascript in variable. going find until error "syntaxerror: missing ; before statement" ... have found out if remove line works (i put // ---- on line). please can help? $this->paint_javascript_function_text .= ' function image_'.$this->archive_id.'_rollover (){ document.getelementbyid("details").innerhtml = "'.$this->archive_name.'<br />'.$this->archive_dimensions.' - price £'.$this->archive_price.' inc packaging"; } function image_'.$this->archive_id.'_fullsize (){ document.getelementbyid("gallery").innerhtml = '; $this->paint_javascript_function_text .= "'"; $this->paint_javascript_function_text .= '<table width="100%" height="400"border="0" align="center"><tr><td align="right" valign="middle...