Im getting an error on my page below is the code :
The error I get is Parse error: syntax error, unexpected ';' in line 120
I am a newbie but any help would be much appreciated!
Thanks
<?
//ini_set("display_errors", "on");
//error_reporting(E_ALL);
require("lib/includes/app_top.php");
parseget();
$_page = ($_GET['_page']!="" ? "_pages/{$_GET['_page']}.php" : "_pages/login.php");
if ($_GET['_page']=="") $_GET['_page']="login";
//$msg=$_REQUEST['msg'];
$msg="";
$mailhead ="<img src='".APP_URL."images/logo.jpg' alt='Fotomaze' title='Fotomaze' /> <br /><br />";
$countriesList = dbQuery("select country_id as value, country_name as text from countries order by country_name");
//$countiesList = dbQuery("select id as value, name as text from counties order by name");
?>
<!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" />
<? include("lib/includes/seo_tags.php"); ?>
<base href="<?=APP_URL?>" />
<link rel="icon" href="images/fotomaze.ico" type="image/x-icon" />
<link rel="stylesheet" href="style/new_pro.css" type="text/css" />
<link href="style/new_style.css" rel="stylesheet" type="text/css" />
<link href="style/jsval.css" rel="stylesheet" type="text/css" />
<link href="style/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="niftyCorners.css" />
<link rel="stylesheet" type="text/css" href="niftyPrint.css" media="print" />
<script type="text/javascript" src="nifty.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/jsval.js"></script>
<script type="text/javascript" src="js/AC_RunActiveContent.js"></script>
<script src="js/datetimepicker.js" type="text/javascript"></script>
<script src="js/trans.js" type="text/javascript"></script>
<script src="js/wz_jsgraphics.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="js/dom-drag.js"></script>
<script language="javascript" type="text/javascript">
<? if($_GET['_page']=="user_home") { ?>
<script type="text/javascript" src="js/drag.js"></script>
<? } ?>
</head>
<body style="margin:0;" <? if($_SESSION['FOTOMAZE_USER_AUTH']) { ?> onload="javascript:initMovableHelp('div_myoptions');" <? } ?>>
<!--onload="Rounded('div#myopt','#75797A','#ffffff');"-->
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td>
<!-- <div id="loadingDiv" class="transHidden">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:100%;">
<tr style="height:100%">
<td align="center" valign="middle" style="height:100%;">
<img src="images/loading.jpg" alt="Loading" /> </td>
</tr>
</table>
</div> -->
<?
if ($_SESSION['FOTOMAZE_USER_AUTH'] && trim($_REQUEST['y'])!="user_option") include("_pages/myoptions.php"); ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="left">
<!--DWLayoutTable-->
<? if ($_REQUEST['menu_disp']!="no") { ?>
<tr>
<td height="76" colspan="3" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td colspan="4" height="15"> </td>
</tr>
<tr>
<? if ($_page=="_pages/login.php") { ?>
<td height="61"> </td>
<td align="left" valign="top" width="389"><a href="<?=APP_URL?>"><img src="images/logo.jpg" alt="Fotomaze" /></a></td>
<td align="left" valign="middle" width="389">
<form name="frm_login" method="post" action="home.html">
<table align="right" border="0" cellpadding="0" cellspacing="0">
<tr><td align="left" valign="middle" style="background: url(images/searchtop.jpg); background-repeat:no-repeat;" nowrap="nowrap">
<input type="text" name="search_text" value="<?=$_REQUEST["search_text"]?>" style=" width:165px; height:12px; vertical-align:middle; font-size:9px; border:none; border-color:#000000; background-repeat:no-repeat; " />
<input type="image" class="imgsearch" src="images/searchbutton.gif" alt="Search" align="middle" style="vertical-align:middle;"/>
</td></tr>
<tr><td align="center"><a href="<?=APP_URL."home.html"?>" style="font-size:12px; font-weight:700;">Browse <font color="#7b8586">Images</font></a></td></tr>
</table>
</form>
</td>
<td> </td>
<? } else { ?>
<? if ($_REQUEST['menu_disp']!="no") { ?>
<td width="1%" height="61"> </td>
<td width="31%" align="left" valign="top">
<a href="<?=APP_URL?>"><img src="images/logo.jpg" alt="" /></a>
</td>
<td width="40%" > </td>
<td width="30%" align="right" valign="bottom" nowrap="nowrap">
<?
if ($_SESSION[FOTOMAZE_USER_PROFILE][user_id]!="" && $_SESSION[FOTOMAZE_USER_PROFILE][user_type]=="Seller")
{
$UserResult=dbQuery("select account_balance, user_type, seller_type, memory_used from users where user_id='".$_SESSION[FOTOMAZE_USER_PROFILE][user_id]."'","singlerow");
?>
<table width="100%" align="right" style="color:#718792;">
<? if ($UserResult['user_type']=="Seller") { ?>
<tr>
<td align="left" nowrap="nowrap"><?="User Status : ".$UserResult['seller_type']." Membership"?></td>
</tr>
<? } ?>
<tr>
<td align="left" nowrap="nowrap"><?="Account Balance : ".CURRENCY_HTML." ".$UserResult['account_balance']?></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" style="padding-right:50px;"><?="Memory Usage : ".round((getmemsize()/(1024*1024)),3)." MB Space"?><!-- (1024*1024*1024) GB value -->
<?=//"Memory Usage: ".round(($UserResult['memory_used']*1024),3)." MB Space"?>
</td>
</tr>
</table>
<? } else { ?>
<? } ?>
</td>
<? } ?>
<? } ?>
</tr>
</table>
</td>
</tr> <? } ?>
<tr>
<td align="center" valign="top" colspan="2">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<? if ($_page=="_pages/login.php") { ?>
<tr><td colspan="4" height="10px"></td></tr>
<tr><td width="11%"> </td>
<?
//$home_flag="";
while (trim($home_flag)=="")
{
$img=dbQuery("select h.homepage_image_id from homepage_images h, homepage_images h2 where h.displayedon <= h2.displayedon group by h.homepage_image_id order by h.displayedon","singlerow");
$home_image= "./admin/croped_images/".$img['homepage_image_id'].".jpeg";
$homepage_image_id=$img['homepage_image_id'];
/*$dbFields=array();
$dbFields['displayedon']="now()";
$specialFields=array("displayedon");
$condition="homepage_image_id = '$homepage_image_id'";
echo dbPerform("homepage_images",$dbFields,$specialFields,$condition); */
//echo date("Y-m-d H:t:s");
$up="update homepage_images set displayedon=now() where homepage_image_id = '$homepage_image_id'";
dbQuery($up);
if (file_exists($home_image)) { $home_flag="yes"; }
}
?>
<td height="195" align="center" valign="top"><a href="<?=APP_URL."home.html"?>"><img align="middle" src='<?=$home_image?>' alt='Front page Image' /></a></td>
<td width="11%"> </td>
</tr>
<? } else { ?>
<? if ($_REQUEST['menu_disp']!="no") { ?>
<tr>
<td colspan="2" valign="top"><? include("_pages/header.php"); ?></td>
</tr>
<? } ?>
<? } ?>
<tr>
<? if ($_page=="_pages/login.php") { ?>
<td colspan="3" align="center" valign="top"><? include($_page); ?></td>
<? } else { ?>
<? if ($_REQUEST['menu_disp']!="no") { ?>
<td width="15%" rowspan="3" valign="top" style="background:url(images/sidemenuback.gif); background-repeat:repeat-y; background-color:#D3DDDC;">
<table border="0">
<tr><td>
<? $col="#000000"; if ($_GET[_page]!="sitemap") include("_pages/sidemenu.php"); ?></td>
</tr>
<tr><td align="left"><img src="images/bar.gif" alt="" />
<? include("_pages/symbol.php"); ?></td></tr>
</table>
</td>
<? }?>
<? $help_option="<a onclick=\"javascript:getHelp('./admin/help.php?help=$_GET[_page]')\" style=\"cursor:help\">(?) Help</a>"; ?>
<td width="100%" align="left" valign="top" style="background:url(images/back_logo.jpg); background-repeat:no-repeat; background-position:right; padding:10px; background-attachment:fixed;">
<table width="100%" >
<? if ($_SESSION['MSGMSG']!="") { ?><tr><td class="redText"><?=$_SESSION['MSGMSG']?></td></tr><? } ?>
<tr><td height="1px">
<a name="help"></a>
<div id="help" style="width:100%; border:#FF0000; background-color:#FFFFFF; position:relative; display:none; overflow:auto; float:left;"></div>
</td></tr>
<tr><td><? include($_page); ?></td></tr>
</table>
</td>
<?
$_SESSION['FOTOMAZE_USER_PAGE']="";
} ?>
</tr>
<tr>
<td colspan="3" valign="top">
<? if ($_page=="_pages/login.php") { ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td align="center" valign="top">
<? $terms = dbQuery("select * from cms where pagename='home'", 'singlerow'); ?>
<table id="Table_01" width="785" style="height:194;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="785" height="27">
<img src="images/below_01.gif" width="785" height="27" alt="" /></td>
</tr>
<tr>
<td width="785" height="140" style="background:url(images/below_02.gif);"><?=html_entity_decode($terms['desctext'])?></td>
</tr>
<tr>
<td width="785" height="27">
<img src="images/below_03.gif" width="785" height="27" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<? } ?>
</td>
</tr>
<? if ($_REQUEST['menu_disp']!="no") { ?>
<tr>
<td colspan="3" valign="bottom" style="padding-bottom:5px;" width="100%">
<? include("_pages/footer.php"); ?>
</td>
</tr>
<? }
$_SESSION['MSGMSG']="";
?>
</table>
</td></tr>
</table>
</td></tr></table>
</body>
</html>