Page 1 of 1

Help with footer code

Posted: Sun Nov 23, 2008 1:52 am
by stingerman
I am getting a:

Code: Select all

Parse error: syntax error, unexpected '<' in /home/content/m/a/t/mattwmc2001/html/site/cbnfooter.php on line 3
Here is my footer code:

Code: Select all

<?php
 
<div id="header2">
<div class="endtabs">
<ul>
<li><a href="http://www.cosmicbooknews.com">Home</a></li>
<li><a href="http://www.cosmicbooknews.com/sitemap">Site Map</a></li>
<li><a href="http://www.cosmicbooknews.com/about/contactus/">Contact</a></li>
<li><a href="http://www.cosmicbooknews.com/news/">News</a></li>
<li><a href="http://cosmicbooknews.com/forum">Forums</a></li>
</ul>
</div>
<div id="copy">&copy 2008 CosmicBookNews.com</div>
<div id="cbdbanner"><a href="http://www.cbldf.org" target="_blank"><IMG border="0" SRC="http://www.cosmicbooknews.com/cbdbanner.jpg"></a></div>
</div>
 
?>
Any ideas?

Re: Help with footer code

Posted: Sun Nov 23, 2008 3:15 am
by josh
That's not PHP code, remove the <?php and ?>

Re: Help with footer code

Posted: Sun Nov 23, 2008 12:37 pm
by Citrate
As stingerman said, this isn't PHP code, just pure HTML code. Remove the PHP tags (<?php & ?>) and this will just run like any HTML document, regardless of the file extension (.htm or .php).

Re: Help with footer code

Posted: Sun Nov 23, 2008 10:35 pm
by stingerman
Citrate wrote:As stingerman said, this isn't PHP code, just pure HTML code. Remove the PHP tags (<?php & ?>) and this will just run like any HTML document, regardless of the file extension (.htm or .php).


*You guys were right - remove the php from the top and bottom. Thanks! :banghead:

Re: Help with footer code

Posted: Mon Nov 24, 2008 7:15 am
by josh
Citrate wrote:As stingerman said,
you mean jshpro2, stingerman was the OP :lol: