/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] error on page

hi, am at the end of completing a website for a college radio show, and i keep geting the following error

[

[QUOTE]

Parse error: syntax error, unexpected Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /home/kcclive/public_html/kcclive/pages/sections/topsection.php on line 68

[/QUOTE]

the way the site has been developed is,

homepage has 3 includes, 1 is the top section of the website which contains

a logo, menu, banner and a image that changes depending on day/time (done in php)

other 2 are a simple include with a menu and one pulling in a few image/links

below are the 2 main scripts in the next posts

ive sat here and taken out each section of script and cant seem to suss where the error is ?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@xidaauthorFeb 16.2009 — [code=php]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<style type="text/css">
<!--
body {
background-image: url();
background-repeat: no-repeat;
background-color: #000000;
}
.topbackground {
background-image: url(../../layout/background.jpg);
background-repeat: no-repeat;
}
-->
</style>
<link href="../../styles/general.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="980" height="1095" border="0" align="center" background="../../layout/background.jpg" class="topbackground" no-repeat;">
<tr>
<td valign="top"><table width="974" height="1059" border="0">
<tr>
<td width="759" align="center" valign="top"><?php include("../sections/topsection.php"); ?></td>
</tr>
<tr>
<td valign="top"><table width="968" height="689" border="0">
<tr>
<td width="146" rowspan="2" valign="top"><?php include("../sections/sidemenu.php"); ?></td>
<td height="26" align="right" valign="top"><img src="../../layout/textanphone.png" alt="Text: kcclive to 83399, Email: [email protected], Office: 01514775997" width="691" height="20" /></td>
</tr>
<tr>
<td width="812" valign="top"><img src="../../layout/seperator.png" width="723" height="2" />
<table width="797" height="581" border="0">
<tr>
<td height="20" valign="top"><img src="../../images/pageheading/whatshappin.png" alt="Whats happing This Week" width="400" height="28" /></td>
</tr>
<tr valign="top">
<td height="186"><p>
</p></td>
</tr>
<tr valign="top">
<td height="10">&nbsp;</td>
</tr>
<tr valign="top">
<td height="20"><img src="../../images/pageheading/gossip.png" width="400" height="28" /></td>
</tr>
<tr valign="top">
<td><p>BBC Entertainment RSS Feed,</p>
<p>&nbsp;</p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>

<table width="980" height="24" border="0" align="center">
</table>
<table width="980" height="108" border="0" align="center" class="bottombackground">
<tr>
<td align="center" valign="top"><table width="964" height="99" border="0" align="center">
<tr>
<td width="958" height="95" align="center"><?php include("../sections/bottomsection.php"); ?></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
[/code]


top section

[code=php]<link href="../styles/general.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('../../layout/menutext/homeover.png','../../layout/menutext/listenover.png','../../layout/menutext/trainingover.png','../../layout/menutext/advertiseover.png','../../layout/menutext/aboutover.png','../../layout/menutext/contactover.png')">
<table width="973" height="298" border="0">
<tr>
<td height="156" valign="top"><table width="964" height="158" border="0">
<tr>
<td width="195" align="center" rowspan="2"><p><img src="../../layout/logo.png" alt="KCC Live Logo" width="167" height="140" /></p> </td>
<td width="759" height="89" align="center"><img src="../../layout/name.png" alt="Welcome To KCC Live" width="507" height="78"></td>
</tr>
<tr>
<td><table width="258" height="41" border="0" align="center">
<tr>
<td width="32"><a href="../index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','../../layout/menutext/homeover.png',1)"><img src="../../layout/menutext/home.png" alt="Home" name="home" border="0" id="home" /></a></td>
<td width="10" valign="middle"><img src="../../layout/seperators.jpg" name="sep1" width="4" height="18" id="sep1" /></td>
<td width="32"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Listen Live','','../../layout/menutext/listenover.png',1)"><img src="../../layout/menutext/listen.png" alt="Listen Live" name="Listen Live" border="0" id="Listen Live" /></a></td>
<td width="10" valign="middle"><img src="../../layout/seperators.jpg" name="sep2" width="4" height="18" id="sep2" /></td>
<td width="32"><a href="training.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Training','','../../layout/menutext/trainingover.png',1)"><img src="../../layout/menutext/training.png" alt="Training" name="Training" border="0" id="Training" /></a></td>
<td width="10" valign="middle"><img src="../../layout/seperators.jpg" name="sep3" width="4" height="18" id="sep3" /></td>
<td width="32"><a href="advertise.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Advertise','','../../layout/menutext/advertiseover.png',1)"><img src="../../layout/menutext/advertise.png" alt="Advertise With Us" name="Advertise" border="0" id="Advertise" /></a></td>
<td width="10" valign="middle"><img src="../../layout/seperators.jpg" name="sep4" width="4" height="18" id="sep4" /></td>
<td width="32"><a href="aboutus.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','../../layout/menutext/aboutover.png',1)"><img src="../../layout/menutext/about.png" alt="About Us" name="about" border="0" id="about" /></a></td>
<td width="10" valign="middle"><img src="../../layout/seperators.jpg" name="sep5" width="4" height="18" id="sep5" /></td>
<td width="500"><a href="contact.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contact','','../../layout/menutext/contactover.png',1)"><img src="../../layout/menutext/contact.png" alt="Contact Us" name="contact" border="0" id="contact" /></a></td>
</tr>
</table></td>
</tr>
</table>

</td>
</tr>
<tr>
<td valign="top"><img src="../../layout/orangebar.png" width="954" height="9"></td>
</tr>
<tr>
<td height="110" valign="top"><table width="909" height="84" border="0">
<tr>
<td width="189">
<?php
$air_status = 'Off the Air';
$img_src = '../../images/air/offair.png';

$air_times = array(
array('day' => 'Monday', 'start' => 10 * 60 + 00, 'end' => 10 * 60 + 59, 'status' => 'Matt Marshall - Uchoonz', 'img_src' => '../../images/air/mattm.png'),
array('day' => 'Friday', 'start' => 12 * 60 + 00, 'end' => 12 * 60 + 59, 'status' => 'Matt Marshall' 'img_src' => '../../images/air/mattm.png')
);
date_default_timezone_set('GMT');
$c_day = date('l');
$time = date('G') * 60 + date('i');

foreach ($air_times as $slot) {
if ($slot['day'] == $c_day && $slot['start'] <= $time && $slot['end'] >= $time) {
$air_status = $slot['status'];
$img_src = $slot['img_src'];
}
}
print " <img src='{$img_src}' alt='{$air_status}' title='{$air_status}' >";

print date('G') . ':' . date('i') . ' on ' . date('l');

?>
</td>
<td width="710" valign="top"><table width="708" height="231" border="0">
<tr>
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','700','height','230','src','../../FLASH/4','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../../FLASH/4' ); //end AC code
</script><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="700" height="230">
<param name="movie" value="../../FLASH/4.swf">
<param name="quality" value="high">
<embed src="../../FLASH/4.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="700" height="230"></embed>
</object></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><img src="../../layout/orangebar.png" width="954" height="9"></td>
</tr>
</table>[/code]
Copy linkTweet thisAlerts:
@xidaauthorFeb 16.2009 — hahaha never mind fixed it ><
×

Success!

Help @xida spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...