typically, your footer.php, like your header.php is outputting HTML to the browser. If your getting an error, it's likely syntax.
If there is any php code in these files, it needs to be wrapped in the apporpriate tags. Pure HTML if added, is done outside the code tags.
I can certainly help if your more specific