Keanu
03-20-2007, 05:10 PM
Hello,
My friend recently taught me how to code links in php.. Because well.. Its one of the safest ways to code your links. Or so im told.
Quite a long story short... I'v got this template off a site.. Its coded in html/css.. Yet I want the links in PHP.. So iv changed the format to php, added where the links are ment to be.. added the tags <?php and ?>
But I keep getting the error: Parse error: syntax error, unexpected '<' in /home/keanu/domains/aro-server.co.uk/public_html/radio/index.php on line 18
Here is the entire code for that page;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>ARO-Radio</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="header">
<div id="logo">
</div>
<div id="topright">
<div id="nav">
<ul>
<?php
<a href="iframe.php?load=news" target="iframe">Home</a>
<a href="iframe.php?load=Feature_Bands" target="iframe">Featured Bands</a>
<a href="iframe.php?load=DJ_Panel" target="iframe">DJ PANEL</a>
<a href="iframe.php?load=Forum" target="iframe">Forum</a>
<a href="iframe.php?load=About" target="iframe">About Us</a>
<a href="iframe.php?load=Contact" target="iframe">Contact Us</a>
?>
</ul>
<div style="clear:both"></div>
</div>
<div id="contenttr"></div>
</div>
</div>
<div id="bottom">
<div id="csoon">
<div class="heading2"></div>
</div>
<div id="videobox"></div>
<div id="player">
<img src="images/circle-topl.jpg" alt="Stop" class="player1" />
<img src="images/circle-topr.jpg" alt="Play" class="player1" />
<img src="images/circle-bottoml.jpg" alt="Pause" class="player1" />
<img src="images/circle-bottomr.jpg" alt="F.Forward" class="player1" />
</div>
<div id="footer">
<ul>
<?php
<a href="iframe.php?load=news" target="iframe">Home</a>
<a href="iframe.php?load=Feature_Bands" target="iframe">Featured Bands</a>
<a href="iframe.php?load=DJ_Panel" target="iframe">DJ PANEL</a>
<a href="iframe.php?load=Forum" target="iframe">Forum</a>
<a href="iframe.php?load=About" target="iframe">About Us</a>
<a href="iframe.php?load=Contact" target="iframe">Contact Us</a>
?>
</ul><br /><br />
<p class="calign">© Copyright ARO-Radio 2007-2008.</p>
</div>
</div>
</div>
</body>
</html>
Sorry if this is posted in the wrong section.. Due to it being a problem with PHP... I thought... I should stick it in the PHP section..
-Keanu
My friend recently taught me how to code links in php.. Because well.. Its one of the safest ways to code your links. Or so im told.
Quite a long story short... I'v got this template off a site.. Its coded in html/css.. Yet I want the links in PHP.. So iv changed the format to php, added where the links are ment to be.. added the tags <?php and ?>
But I keep getting the error: Parse error: syntax error, unexpected '<' in /home/keanu/domains/aro-server.co.uk/public_html/radio/index.php on line 18
Here is the entire code for that page;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>ARO-Radio</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="header">
<div id="logo">
</div>
<div id="topright">
<div id="nav">
<ul>
<?php
<a href="iframe.php?load=news" target="iframe">Home</a>
<a href="iframe.php?load=Feature_Bands" target="iframe">Featured Bands</a>
<a href="iframe.php?load=DJ_Panel" target="iframe">DJ PANEL</a>
<a href="iframe.php?load=Forum" target="iframe">Forum</a>
<a href="iframe.php?load=About" target="iframe">About Us</a>
<a href="iframe.php?load=Contact" target="iframe">Contact Us</a>
?>
</ul>
<div style="clear:both"></div>
</div>
<div id="contenttr"></div>
</div>
</div>
<div id="bottom">
<div id="csoon">
<div class="heading2"></div>
</div>
<div id="videobox"></div>
<div id="player">
<img src="images/circle-topl.jpg" alt="Stop" class="player1" />
<img src="images/circle-topr.jpg" alt="Play" class="player1" />
<img src="images/circle-bottoml.jpg" alt="Pause" class="player1" />
<img src="images/circle-bottomr.jpg" alt="F.Forward" class="player1" />
</div>
<div id="footer">
<ul>
<?php
<a href="iframe.php?load=news" target="iframe">Home</a>
<a href="iframe.php?load=Feature_Bands" target="iframe">Featured Bands</a>
<a href="iframe.php?load=DJ_Panel" target="iframe">DJ PANEL</a>
<a href="iframe.php?load=Forum" target="iframe">Forum</a>
<a href="iframe.php?load=About" target="iframe">About Us</a>
<a href="iframe.php?load=Contact" target="iframe">Contact Us</a>
?>
</ul><br /><br />
<p class="calign">© Copyright ARO-Radio 2007-2008.</p>
</div>
</div>
</div>
</body>
</html>
Sorry if this is posted in the wrong section.. Due to it being a problem with PHP... I thought... I should stick it in the PHP section..
-Keanu