I am getting this error message
Parse error: parse error, unexpected ';' in /home/beauty23/public_html/beta/index.php on line 281
Here is line 281 of the code
<div id="advbanner" style="display: <?=( ($adpart=="?>"?>"?>"?>"?>
Also, Here the surrounding code from lines 243 to 289
<?
// Advertisement Banner
$adpart = (($content == "businesshome") || ($content == "consumerhome"))?"Front page":"Rest of page";
if (empty($GET['suburb']))
{
$banner = @mysql_fetch_assoc(sql("
SELECT ad_imageid, ad_url
FROM Listings, Customers
WHERE
Listings.custid = Customers.id AND
type = 'Main Advertisement' AND
Customers.country = '$country' AND
status = 'published' AND
payment = 'complete' AND
ad_defined = 'Yes' AND
ad_style = 'banner' AND
ad_site = '$portal' AND
ad_part = '$adpart'
"));
}
else
{
$banner = @mysql_fetch_assoc(sql("
SELECT ad_imageid, ad_url
FROM Listings, Suburbs
WHERE
Listings.id = Suburbs.listid AND
country = '$country' AND
state = '$GET[state]' AND
suburb = '$GET[suburb]' AND
type = 'Suburb Advertisement' AND
status = 'published' AND
payment = 'complete' AND
ad_defined = 'Yes' AND
ad_style = 'banner'
"));
}
?>
<div id="advbanner" style="display: <?=( ($adpart=="?>"?>"?>"?>">
<a target="blank" href="http://<?=$banner['ad_url']?>">
<img border=0 src="getimage.php?id=<?=$banner['ad_imageid']?>" alt="<?=getImageAlt($banner['ad_imageid'])?>">
</a>
</div>
<div id="copyright">
Copyright 2004 XXXXX XX555 Pty Ltd. All rights reserved. <a href="policy.html" target="_blank" class="style1">Privacy Policy and Terms & Conditions</a>.
</div>
Any help on solving this problem is greatly appreciated as I need to fix this asap.
Cheers
Stevef