Getting T_CONSTANT_ENCAPSED_STRING error

Parse error:syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’ or ‘;’ in /home/content/39/7897939/html/wp-content/plugins/db-toolkit/data_report/templatemode.php(453) : eval()’d code on line 11

I know the error occurs in this segment of code, because if I remove this segment, the error goes away. CANNOT find what it might be!!

<?php
	$caresheetlink = '{{caresheetlink}}';
	$gallerylink = '{{gallerylink}}';
	if ((!empty($caresheetlink)) && (!empty($gallerylink))) {
		echo '<div class="sp-btn-first"><span class="spbutton"><div class="sp-button" onClick="parent.location='{{caresheetlink}}'"><span>Care Sheet</span></div></span></div><div class="sp-btn"><span class="spbutton"><div class="sp-button" onClick="parent.location='{{gallerylink}}'"><span>Photo Gallery</span></div></span></div>';
	}
?>

You are using single quotes in a string that is encapsulated by single quotes. Escape those single quotes inside the string with \

Bingo! Thank you! Didn’t realize that was necessary, but had a hunch it had to do with them.