Sorry, I should have added the full code snippet for context
<div id="copyright">© <?php
$copyYear = 2014;
$curYear = date('Y');
echo $copyYear . (($copyYear != $curYear) ? ' - ' . $curYear : '');
?> <?php echo($GlobalSettings->getColumnVal("CompanyName")); ?><br>All Rights Reserved.</div>
Where 2014 is I want to be able to change it through the DB but if I use $copyYear = <?php echo($GlobalSettings->getColumnVal("copyright_startyear")); ?>; I get a syntax error
Thanks
Jamie