Hi. I have extraordinarily limited knowledge of (in?) PHP. Anyway I was trying to fiddle with my website and I did something such that when I click on a menu item on my website I get this message:

Parse error: parse error, unexpected ':' in /home/mercurys/public_html/preview.php on line 46

Other than sit down, shut up, and hire an expert what advice can anyone give me on how to fix this problem asap?

Thanks in advance....

thanks, here it is. I appreciate your assistance.


<title>Florida Process Server Process Serving Service of Process</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="includes/global.css" rel="stylesheet" type="text/css">


<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
<script type="text/javascript">
_uacct = "UA-2778641-2";

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TD><FONT face="times new roman,times,serif" size=4><STRONG>MercuryServe, Inc. - Tampa and St. Petersburg Florida</STRONG> <STRONG>Civil Process Server and Investigator.</STRONG> Tampa headquarters with offices in St. Petersburg offering local, regional, national and international reach.</FONT></TD></TR>
<TD><FONT face="times new roman,times,serif" size=4><STRONG><IMG height=5 src="images/1x1.gif" width=5></STRONG></FONT></TD>
<TD vAlign=bottom><FONT face="times new roman,times,serif" size=4><STRONG><IMG height=5 src="images/1x1.gif" width=5></STRONG></FONT></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width="100%" background=images/img_blue.jpg border=0>
<TD><FONT face="times new roman,times,serif" size=4><STRONG>&nbsp;</STRONG></FONT></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TD vAlign=top><FONT face="times new roman,times,serif" size=4><STRONG><IMG height=1 src="images/1x1.gif" width=1></STRONG></FONT></TD></TR>
<TD vAlign=top bgColor=#eeeeee height=600>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TD vAlign=top width="20%" bgColor=#000000 height=600>
<P><FONT face="times new roman,times,serif"><FONT size=4><STRONG><IMG height=72 src="images/menuHead.gif" width=160 border=0></STRONG></FONT></FONT></P>
<TD class=normal vAlign=top width="60%"><FONT face="times new roman,times,serif"><FONT size=4>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT size=3>&nbsp;</FONT></o:p></P></FONT></FONT></TD>
<TD vAlign=top width="20%"><FONT face="times new roman,times,serif"><FONT size=4><STRONG></STRONG></FONT></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></body>

this code has no sense.. it s html.. even u ve mistakes browser ll show up... send your codes in

Here is that defenitions file - I imagine the misspelling does not matter...

<? import_request_variables(gP);?>
<?include ("includes/dbconnection.php");?>
<?if($menuid=="" && $newsid=="" && $flag!=1)
<script language="javascript" src="includes/global.js"></script>


I think that the line 46 is on file news.php, or previewnews.php (after being included on site_defenitions.inc ).

On the other hand, your have an mistake with your Analitycs script.
It must be just before the </body> tags.
<google script>


The colon (:) that the error message is referring to might be in your include file. How about sharing that with us as well?


This article has been dead for over six months. Start a new discussion instead.