Help with footer code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stingerman
Forum Newbie
Posts: 2
Joined: Sun Nov 23, 2008 1:46 am

Help with footer code

Post 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?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Help with footer code

Post by josh »

That's not PHP code, remove the <?php and ?>
Citrate
Forum Newbie
Posts: 5
Joined: Sat Nov 22, 2008 3:26 pm

Re: Help with footer code

Post 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).
stingerman
Forum Newbie
Posts: 2
Joined: Sun Nov 23, 2008 1:46 am

Re: Help with footer code

Post 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:
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Help with footer code

Post by josh »

Citrate wrote:As stingerman said,
you mean jshpro2, stingerman was the OP :lol:
Post Reply