PDA

View Full Version : Urgent: PHP Problem



Gray
12-16-2005, 04:54 PM
I am using the following PHP script on my website and I get a Parse Error on the Bold Line of the Script.



<html>
<head>
<META HTTP-EQUIV="REFRESH" CONTENT="60;URL=index.php">
<style type="text/css">
h3 {font-family: Comic Sans MS}
h3 {font-size: 12}
p {font-family: courier}
p.sansserif {font-family: sans-serif}
</style>
</head>
<body>
<?php
//////////////////////////////////////////////////////////////////////////////
// DJ Status v1.8.2 //
// 2005 Nathan Bolender www.nathanbolender.com //
// Free to use on any website //
//////////////////////////////////////////////////////////////////////////////

include ("config.php");
if ($scsuccs!=1) {
if($streamstatus == "1"){
if (isset($dj)) {
echo "
<BODY BGCOLOR=#F8AC18> <FONT SIZE=2> <FONT COLOR=#1A1364> <b> <h3> Current Title</b>: $servertitle <br>
<b>Current Song:</b> $song[0]<br>
<b>Current DJ</b>: $name<br>
";

if ((empty($aimdb)) && (isset($aim) && $aim) && ($aim != "N/A")) {
$aimdb = $aim;
}
if ((empty($icqdb)) && (isset($icq) && $icq)) {
$icqdb = $icq;
}
if (isset($aimdb) && $aimdb) {
echo "<b>AIM</b>: $aimdb<br>";
}
if (isset($msn) && $msn) {
echo "<b>MSN</b>: $msn<br>";
}
if (isset($yim) && $yim) {
echo "<b>YIM</b>: $yim<br>";
}

echo "<A HREF=http://www.theeagleradio.net> Home </A>;

if ($showsetby == 1) {
echo "<br><br><b>This DJ was found by checking:</b> $setby";
}



?>
</body>
</html>
<html>
<head>
<style type="text/css">
h3 {font-family: Comic Sans MS}
h3 {font-size: 12}
p {font-family: courier}
p.sansserif {font-family: sans-serif}
</style>
</head>
<body>
<?php

} else {
echo " <h3> <BODY BGCOLOR=FCB00D> ";
}
} else {
echo "<BODY BGCOLOR=FCB00D> ";
}
} else {
echo "<BODY BGCOLOR=FCB00D> </h3> ";
}
?>
</body>
</html>


Here is the Line That the Error is Occuring On:




echo "<A HREF=http://www.theeagleradio.net> Home </A>;

VodaHost
12-17-2005, 09:00 AM
the below is what you have...

"<A HREF=http://www.theeagleradio.net> Home </A>;

try

"<A HREF=http://www.theeagleradio.net> Home </A>;"

Gray
12-17-2005, 03:17 PM
Yes I finnally figured that out after a few hours lol
Thanks!

Brad
12-17-2005, 11:29 PM
thread closed