Strange problem with install script (worked before but not it's not working???)

Discussion in 'PHP' started by starscream, Jan 22, 2009.

  1. #1
    Hello there,

    I'm trying to install a script on our new server. It's a very basic install script and we installed it fine a few months ago on our old server but now for some reason it's giving us this error now when we try to run it.

    Parse error: syntax error, unexpected ';' in /home/cgymodel/public_html/game/setup/index.php on line 187

    I looked at line 187 but nothing appears to be wrong with it. Can someone look at the code below and tell me if there is anything wrong that might be causing the error I'm getting above.

    <?
    /*
    INSTALLATION WIZARD INITIALIZATION
    v1.0
    */
    error_reporting (0);
    include ("../includes/config.php");
    include ("../dbcon.php");

    $setup_status=mysql_fetch_array(mysql_query("select * from cool_setup", $casdb));
    $setupstatus=$setup_status[0];

    if ($setupstatus=="1")
    {
    $startlink="<span class=\"smalltext\">GAMeâ„¢ ALREADY INSTALLED</span>";
    }

    if ($setupstatus!="1")
    {
    $startlink="<a href=\"setup.php\" id=\"moduletitle\">INSTALL GAMeâ„¢ </a>";
    }
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd"><html>

    <head>
    <title>Installation Wizard</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <STYLE type=text/css>
    A:visited {
    COLOR: #000000; TEXT-DECORATION: none
    }
    A:hover {
    COLOR: red; TEXT-DECORATION: none
    }
    A:link {
    COLOR: #000000; TEXT-DECORATION: none
    }
    .gtext
    {
    FONT-SIZE: 11px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial;
    }
    .logotext
    {
    FONT-SIZE: 34pt;
    FONT-FAMILY: Tahoma, Verdana, Arial;
    }
    fieldset {
    border:1px dotted gray;
    background: white;
    }

    legend {
    padding: 0.2em 0.5em;
    color:green;
    font-size:90%;
    background: white;
    text-align:right;
    FONT-SIZE: 11px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial
    }

    .inputbutton {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #438CCA;
    padding:2px;
    background-color:#FFFFFF;
    border: 1px solid;
    vertical-align:top;
    cursor:pointer;
    }

    .inputbuttonred {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: red;
    padding:2px;
    background-color:#FFFFFF;
    border: 1px solid;
    vertical-align:top;
    cursor:pointer;
    }

    .inputtext
    { BACKGROUND-COLOR: #FFFFFF;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Tahoma;
    FONT-SIZE: 12px;
    BORDER-STYLE: solid;
    BORDER-COLOR: #333333;
    BORDER-WIDTH: 1px;
    PADDING: 2px 2px 2px 2px;
    MARGIN: 0px;
    }

    .mediumtext
    {
    FONT-SIZE: 12px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial
    }

    .smalltext
    {
    FONT-SIZE: 11px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial
    }

    .navtitle
    {
    FONT-SIZE: 11px;
    COLOR: #454545;
    FONT-FAMILY: Verdana, Arial;
    VERTICAL-ALIGN: middle;
    HEIGHT: 20px;
    WIDTH: 100%;
    }

    .centerarea {
    text-decoration: none;
    margin: 0 0 0 0;
    border: 1px solid #CDCDCD;
    background: #FFFFFF url(images/contentbg.gif) no-repeat bottom left;
    -moz-border-radius: 8px 8px 8px 8px;
    COLOR: #61718C;
    WIDTH: 500px;
    PADDING: 4px;
    }

    .contenthr
    {
    BORDER: none;
    COLOR: #FFEECF;
    BACKGROUND-COLOR: #FFEECF;
    HEIGHT: 1px;
    MARGIN: 3 1 3 1;
    PADDING: 0;
    }

    .navsub {
    padding: 4px 4px 4px 4px;
    }

    body {
    background-color: #F0EADE;
    BACKGROUND-IMAGE: URL(images/pagebg.gif);
    background-repeat: no-repeat;
    BACKGROUND-POSITION: bottom left;
    PADDING: 6px 6px 6px 6px;
    }


    #moduletitle:link {
    FONT-WEIGHT: none; FONT-SIZE: 32px; COLOR: #277DC9; FONT-FAMILY: Trebuchet MS, Verdana, Arial, Helvetica; TEXT-DECORATION: none
    }
    #moduletitle:visited {
    FONT-WEIGHT: none; FONT-SIZE: 32px; COLOR: #277DC9; FONT-FAMILY: Trebuchet MS, Verdana, Arial, Helvetica; TEXT-DECORATION: none
    }
    #moduletitle:hover {
    FONT-WEIGHT: none; FONT-SIZE: 32px; COLOR: #ff7200; FONT-FAMILY: Trebuchet MS, Verdana, Arial, Helvetica; TEXT-DECORATION: underline
    }
    .style1 {
    color: #000000;
    font-weight: bold;
    }
    </STYLE>
    <script language="Javascript">
    // Workaround for the stupid 100% width bug in IE
    function ClearError() { return true; }
    window.onerror = ClearError;
    </script>
    </head>

    <body bgcolor="#F0EADE" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
    <center><BR /><BR /><BR />
    <div class="centerarea">
    <center><img src="images/install_header_big.gif" width="400" height="128" border="0">
    </center>
    <HR class="contenthr"><BR />
    <? ; echo $startlink; echo ?>
    <BR />
    <BR />
    <div style="VERTICAL-ALIGN: bottom">
    <HR class="contenthr">
    <span class="smalltext">Copyright &copy; 2007 <a href="http://www.mygame.com" target="_blank">Game</a> .All rights reserved. </span></div>
    </div>
    </center>
    </body>

    </html>
     
    starscream, Jan 22, 2009 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    can you post whats on line 180 - 190
     
    bartolay13, Jan 22, 2009 IP
  3. Gangsta

    Gangsta Active Member

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    <? ; echo $startlink; echo ?>

    replace with <? echo $startlink; ?>
     
    Gangsta, Jan 22, 2009 IP